public Task <ResourceSingleResponse <TSDO> > Update(TSDO sdo) { var dto = Mapper.Map <TDTO>(sdo); return(DoAction(async() => { await _dynamoDbRepository.Update(dto); return dto; })); }
public bool ResetPassword(ResetPasswordDTO model) { var user = _authRepository.Get(model.Username); if (user == null) { return(false); } string passHash = PasswordHasher.Hash(model.NewPassword); user.Password = passHash; _authRepository.Update(user); return(true); }
public bool UpdateUser(User user) { return(_usersIdentityRepository.Update(user)); }
public TEntity Update(TEntity entity) { return(_repository.Update(entity)); }