/// <summary> /// This method is used to delete sprint /// </summary> /// <returns></returns> public OperationStatus DeleteSprint(int SprintId) { using (_ISprintRepo = new SprintRepo()) { return(_ISprintRepo.DeleteSprint(SprintId)); } }
public ActionResult DeleteSprint(int id) { var sprint = _repository.GetSprintById(id); if (sprint == null) { return(NotFound()); } _repository.DeleteSprint(sprint); _repository.SaveChanges(); return(NoContent()); }