Exemplo n.º 1
0
 public IActionResult DeleteComplaint(int id)
 {
     try
     {
         complaintBLL.Delete(complaintBLL.Get(id).Data);
         this._logger.LogWarning($"Complaint is deleted. ID = {id} ");
     }
     catch (Exception)
     {
         throw;
     }
     return(RedirectToAction("ProfilePage", "Profile"));
 }
Exemplo n.º 2
0
 public IActionResult DeactivateComplaint(int id)
 {
     complaintBLL.Delete(complaintBLL.Get(id).Data);
     return(Ok());
 }