Ejemplo n.º 1
0
 public IActionResult OpenNewOutlet([FromBody] OutletViewModel outlet)
 {
     try
     {
         _outletService.Open(outlet);
         return(Ok("Successfull"));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }