Example #1
0
        public ActionResult _DeleteClient(int id)
        {
            bool ins2 = schReP.RemoveClient(id);

            //...Delete Rest...
            schReP.RemoveSchoolData(id);

            //...Delete Files...
            Functions func = new Functions();
            func.DeleteFiles(Server.MapPath("~/Images/Client/" + id + "/"));

            //...Repopulate Grid...
            List<Client> lst = new List<Client>();
            lst = schReP.GetListClient();
            return View(new GridModel(lst));
        }