// GET: AdsManagement/Delete/5
 public ActionResult Delete(int id)
 {
     try
     {
         _service.DeleteAdById(id);
     }
     catch
     {
         ModelState.Clear();
         ModelState.AddModelError(string.Empty, "An error ocurred deleting ad");
     }
     return(RedirectToAction(nameof(Index)));
 }