Beispiel #1
0
 public User GetUserByEmail(string email)
 {
     using (var context = new PulseyContext())
     {
         return context.Users.FirstOrDefault(a => a.Email == email);
     }
 }
Beispiel #2
0
 public bool UpdateUserProfile(User objUser)
 {
     using (var context = new PulseyContext())
     {
         context.Entry<User>(objUser).State = EntityState.Modified;
         context.SaveChanges();
     }
     return true;
 }
Beispiel #3
0
 public bool InsertUserProfile(User objUser)
 {
     using (var context = new PulseyContext())
     {
         context.Users.Add(objUser);
         context.SaveChanges();
     }
     return true;
 }