Example #1
0
 public static UserModel Get(int userId)
 {
     try {
         var repo = new UserRepository();
         return repo.Get(userId);
     } catch (Exception ex) {
         throw ex;
     }
 }
Example #2
0
 /// <summary>
 /// Authenticate
 /// </summary>
 /// <param name="emailAddress"></param>
 /// <param name="password"></param>
 /// <returns></returns>
 public static int Authenticate(string emailAddress, string password)
 {
     try {
         var repo = new UserRepository();
         return repo.Authenticate(emailAddress, password);
     } catch (Exception ex) {
         throw ex;
     }
 }