Esempio n. 1
0
        public async Task <ActionResult> Delete(vm.ViewAdmin info)
        {
            try
            {
                await Database.Delete(info.Item);
            }
            catch (Exception ex)
            {
                return(Notify(ex.Message, "error"));
            }

            return(AjaxRedirect(Url.ReturnUrl()));
        }
Esempio n. 2
0
 public async Task <ActionResult> Index(vm.ViewAdmin info)
 {
     return(View(info));
 }