Esempio n. 1
0
 public IActionResult deletecatalogue(int id)
 {
     try
     {
         string message = string.Empty;
         var    bFlag   = _catalogueService.DeleteCatalogue(id, out message);
         return(Ok(new { status = bFlag ? Constants.Success : Constants.Error, message = message }));
     }
     catch (Exception ex)
     {
         //TODO: Log the exception
         return(BadRequest(new { status = Constants.Error, message = Constants.ErrorMessage, user = "" }));
     }
 }