Example #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            try
            {
                categoryData.Delete(id);
            }
            catch (Exception ex)
            {
                log.Error("Could't delete a category from the Database", ex);
                return(View("ErrorRetriveData"));
            }

            return(RedirectToAction("Index"));
        }
Example #2
0
 // DELETE: api/Categories/5
 public void Delete(int id)
 {
     categoryData.Delete(id);
 }
Example #3
0
 // DELETE: api/Areas/5
 public void Delete(int id)
 {
     areaData.Delete(id);
 }