public virtual IActionResult ApiTechnicalContactsPut([FromBody] TechnicalContact techCont) { try { _datastore.Update(techCont); } catch (Crm.CrmApiException ex) { return(StatusCode((int)ex.HttpStatus, ex.Message)); } return(StatusCode(200, techCont)); }
public void Update(TechnicalContacts techCont) { _validator.ValidateAndThrowEx(techCont, ruleSet: nameof(ITechnicalContactsLogic.Update)); _datastore.Update(techCont); }