public async Task <IActionResult> Update([FromBody] EditSecretaryDto secretary) { var listError = ValidPropertiesObject.ObjIsValid(secretary); if (listError.Count > 0) { return(await ResponseNullOrEmpty(listError)); } var result = _service.Update(secretary); return(await Response(result, _service.Validate())); }
public SecretaryDTO Update(SecretaryDTO entity) => _secretaryConverter.ConvertEntityToDTO(_service.Update(_secretaryConverter.ConvertDTOToEntity(entity)));