public virtual IActionResult ApiTechnicalContactsPost([FromBody] TechnicalContact techCont)
        {
            try
            {
                _datastore.Create(techCont);
            }
            catch (Crm.CrmApiException ex)
            {
                return(StatusCode((int)ex.HttpStatus, ex.Message));
            }

            return(new ObjectResult(techCont));
        }
Beispiel #2
0
 public TechnicalContacts Create(TechnicalContacts techCont)
 {
     _validator.ValidateAndThrowEx(techCont, ruleSet: nameof(ITechnicalContactsLogic.Create));
     return(_datastore.Create(techCont));
 }