Hi experts,
I have this rather stupid question yet I duno the answer. Hope someone can let me know the answer :
- public AzolaDL.Account getAccount(string userName, string type){
- AzolaDL.Account account = new AzolaDL.Account();
- try{
- account = db.Accounts.First(e => e.userName == userName && e.type == type);
- }catch (Exception e){
- return null;
- }
- return account;
- }

Mark TaborRank #914 · 2.3K reputationPosted Sep 14, 2016, 1:53 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Sep 14, 2016, 2:10 AM EDT
Vasu GadhiyaRank #7,540 · 239 reputationPosted Sep 14, 2016, 2:44 AM EDT
Tangara GRank #4,983 · 316 reputationPosted Sep 14, 2016, 3:06 AM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Sep 14, 2016, 5:38 AM EDT
Tangara GRank #4,983 · 316 reputationPosted Sep 14, 2016, 10:36 PM EDT