/*[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);
        }
Exemple #2
0
 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);
 }
Exemple #4
0
 public IActionResult Delete(int id)
 {
     _bugRepository.Delete(id);
     _context.SaveChanges();
     return(Ok());
 }