public IActionResult Add(DocumentTypeDTOAdd documentTypeDTOAdd) { _logger.LogInformation(JsonConvert.SerializeObject(documentTypeDTOAdd)); var result = _iDocumentTypeRepository.Add(documentTypeDTOAdd); _logger.LogInformation(JsonConvert.SerializeObject(result)); return(Ok(result)); }
public DocumentTypeDTODetail Add(DocumentTypeDTOAdd documentTypeDTOAdd) { var result = _clientDataDbContext.DocumentTypeDTODetail.FromSqlRaw("Exec DocumentType_Insert {0}", documentTypeDTOAdd.Name).ToList().FirstOrDefault(); return(result); }