Esempio n. 1
0
 public ActionResult <bool> AddMailind(MailingViewModel mailing)
 {
     if (ModelState.IsValid)
     {
         var response = new
         {
             isSuccess = true,
             id        = _mailingService.InsertMailing(_mapper.Map <Mailing>(mailing))?.Id
         };
         return(Ok(response));
     }
     return(BadRequest(ModelState));
 }