Beispiel #1
0
        public virtual async Task <ActionResult> Delete(Guid id, Group model)
        {
            try
            {
                // TODO: Add delete logic here
                await GroupCore.GetAsync(id);

                await GroupCore.DeleteAsync(model);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
Beispiel #2
0
        // GET: Group/Delete/5
        public virtual async Task <ActionResult> Delete(Guid id)
        {
            var std = await GroupCore.GetAsync(id);

            return(View(std));
        }