예제 #1
0
 public IActionResult CreatedResponse(string url = "")
 {
     if (!DomainNotification.HasNotifications())
     {
         return(Created(url, EnvelopResult.Ok()));
     }
     return(BadRequest(EnvelopResult.Fail(DomainNotification.Notify())));
 }
예제 #2
0
 public IActionResult CreateResponse()
 {
     if (!DomainNotification.HasNotifications())
     {
         return(Ok(EnvelopResult.Ok()));
     }
     return(BadRequest(EnvelopResult.Fail(DomainNotification.Notify())));
 }