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")); }
public IActionResult DeactivateComplaint(int id) { complaintBLL.Delete(complaintBLL.Get(id).Data); return(Ok()); }