void IUserProfileRepository.InsertOrUpdate(UserProfile user) { if (user.UserId == default(int)) { _context.UserProfiles.Add(user); } else { _context.Entry(user).State = System.Data.EntityState.Modified; } }
void IUserProfileRepository.Remove(UserProfile user) { _context.Entry(user).State = System.Data.EntityState.Deleted; }