public ActionResult Delete(int id) { Apartamento apartamento = genericDAL.FindById(id); genericDAL.Delete(apartamento); return(RedirectToAction("Index")); }
public ActionResult Delete(int id) { Bloco bloco = genericDAL.FindById(id); genericDAL.Delete(bloco); return(RedirectToAction("Index")); }
public ActionResult Delete(int id) { Condominio condominio = genericDAL.FindById(id); genericDAL.Delete(condominio); return(RedirectToAction("Index")); }
public bool Delete <T>(int id) where T : BaseModel { T entity = _GenericDAL.Find <T>(id); return(_GenericDAL.Delete <T>(entity)); }