public UserDTO AddUpdateUser(UserDTO u) { var newUser = UserMapper.DTOtoEntityUser(u); db.Users.AddOrUpdate(newUser); db.SaveChanges(); return(UserMapper.EntitytoDTOUser(newUser)); }