Example #1
0
        public ActionResult EditAccount(int?id)
        {
            ClientModel model = ClientDAL.GetClient(id);

            //bool done = ClientDAL.UpdateClient(ClientDAL.GetClient(id));
            //if (done)
            //{
            //    ViewBag.Message = "Údaje úspešne aktualizované!";
            //}
            //else
            //{
            //    ViewBag.Message = "Nastala chyba! Modifikácia údajov neúspešná! Kontaktujte centrum pomoci.";
            //}
            return(View(model));
        }
Example #2
0
        public ActionResult DeleteAccount(int id)
        {
            ClientModel model = ClientDAL.GetClient(id);

            return(View(model));
        }