示例#1
0
        public ActionResult Delete(int id)
        {
            LeagueManager leagueManager = new LeagueManager(_context);

            leagueManager.Delete(id);

            return(RedirectToAction("Index"));
        }
示例#2
0
 //[ApiAuthorizeAttribute(Roles = "A")]
 public EntityHttpResponse Delete(int id)
 {
     _Leaguemanager.Delete(x => x.id == id);
     _Leaguemanager.Save();
     return(new EntityHttpResponse(System.Net.HttpStatusCode.NoContent, null, true));
 }