public ActionResult Delete(int id)
        {
            var result = _eventLogService.Delete(new EventLog()
            {
                Id = id
            });

            return(View(result));
        }
Beispiel #2
0
 public IActionResult Delete(int id)
 {
     try
     {
         _eventLogService.Delete(id);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }