public ActionResult DeleteAccount(int id, ClientModel model) { model.ClientId = id; bool done = ClientDAL.DeleteClient(id); if (done) { ViewBag.Message = "Údaje úspešne vymazané!"; } else { ViewBag.Message = "Nastala chyba! Vymazanie údajov neúspešné! Kontaktujte centrum pomoci."; } return(View(model)); }
public bool DeleteClientBL(ClientModel _ClientModel) { bool result = ClientDAL.DeleteClient(_ClientModel); return(result); }
public int Delete(int id) { return(obj.DeleteClient(id)); }