Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        public bool DeleteClientBL(ClientModel _ClientModel)
        {
            bool result = ClientDAL.DeleteClient(_ClientModel);

            return(result);
        }
 public int Delete(int id)
 {
     return(obj.DeleteClient(id));
 }