/*[PrincipalPermission(SecurityAction.Demand, Role = "ADMIN")]*/ public void DeleteBug(Bug bug) { BugRepository repo = new BugRepository(); repo.Delete(bug); BugActionLogger.LogEvent(bug.Project, GetMyUser(), BugActionLogger.Delete_Action, bug); }
public ActionResult <string> Delete(int id) { try { return(Ok(_repo.Delete(id))); } catch (Exception e) { return(BadRequest(e)); } }
public void CleanUp() { _bugRepository.Delete(_bug.IdBug); }
public IActionResult Delete(int id) { _bugRepository.Delete(id); _context.SaveChanges(); return(Ok()); }