public async Task <IActionResult> Delete([FromRoute] int id)
        {
            bool result = await _situationService.DeleteSituation(id);

            if (result == true)
            {
                return(Ok(Properties.Resources.ResourceManager.GetString("SuccDeleteMessage")));
            }
            return(NotFound());
        }
Example #2
0
 public JsonResult Delete(string Id)
 {
     try
     {
         _situationService.DeleteSituation(Id);
         return(Json(Id, JsonRequestBehavior.AllowGet));
     }
     catch (Exception)
     {
         throw;
     }
 }