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));
        }
コード例 #2
0
 public void Update(TechnicalContacts techCont)
 {
     _validator.ValidateAndThrowEx(techCont, ruleSet: nameof(ITechnicalContactsLogic.Update));
     _datastore.Update(techCont);
 }