public string Put(int id, [FromBody] DtoUser dtoUser) { dtoUser.Password = EncryptSha256.Encrypt(dtoUser.Password); _useCaseUser.Update(id, dtoUser.DtoToDomainEntity()); return("Updated"); }
public string Post([FromBody] DtoUser dtoUser) { dtoUser.Password = EncryptSha256.Encrypt(dtoUser.Password); _useCaseUser.Create(dtoUser.DtoToDomainEntity()); return("Created"); }