public void Delete(DalUser entity)
 {
     User ormUser = entity.ToUser();
     context.Set<User>().Remove(ormUser);
 }
 public void Update(DalUser entity)
 {
     User ormUser = entity.ToUser();
     context.Entry(ormUser).State = EntityState.Modified;
 }
 public int Add(DalUser entity)
 {
     var user = entity.ToUser();
     context.Set<User>().Add(user);
     return user.Id;
 }