public static List <SelectListItem> GetCategories(IRepositary repo) { return(repo.GetCategories(). Select(s => new SelectListItem { Value = s.ID.ToString(), Text = s.Name }).ToList()); }
public IssuesController(IRepositary repositary, IIssueManager issueManager, IProjectManager projectManager, IUserSessionHelper userSessionHelper, ICommentManager commentManager) : base(repositary) { this.issueManager = issueManager; this.projectManager = projectManager; this.userSessionHelper = userSessionHelper; this.commentManager = commentManager; }
public IssueService(IRepositary repositary, int userId, int teamId) { repo = repositary; _userId = userId; _teamId = teamId; }
public static List <SelectListItem> GetProjects(IRepositary repo, int teamId) { return(repo.GetProjects(teamId). Select(s => new SelectListItem { Value = s.ID.ToString(), Text = s.Name }).ToList()); }
public IssueService(IRepositary repositary, int userId, int teamId,string siteBaseUrl) { repo = repositary; _userId = userId; _teamId = teamId; SiteBaseURL = siteBaseUrl; }
public IssueService(IRepositary repositary, int userId, int teamId, string siteBaseUrl) { repo = repositary; _userId = userId; _teamId = teamId; SiteBaseURL = siteBaseUrl; }
public static List<SelectListItem> GetCycles(IRepositary repo) { List<SelectListItem> projectList = new List<SelectListItem>(); projectList.Add(new SelectListItem { Value = "1", Text = "1"}); projectList.Add(new SelectListItem { Value = "2", Text = "2" }); projectList.Add(new SelectListItem { Value = "3", Text = "3" }); projectList.Add(new SelectListItem { Value = "4", Text = "4" }); projectList.Add(new SelectListItem { Value = "5", Text = "5" }); return projectList; }
public static List<SelectListItem> GetStatuses(IRepositary repo, List<string> itemsToShow) { List<SelectListItem> projectList = new List<SelectListItem>(); var projects = repo.GetStatuses(); foreach (var pro in projects) { if (itemsToShow.IndexOf(pro.Name)>=0) { projectList.Add(new SelectListItem { Value = pro.ID.ToString(), Text = pro.Name }); } } return projectList; }
public static List <SelectListItem> GetStatuses(IRepositary repo, List <string> itemsToShow) { List <SelectListItem> projectList = new List <SelectListItem>(); var projects = repo.GetStatuses(); foreach (var pro in projects) { if (itemsToShow.IndexOf(pro.Name) >= 0) { projectList.Add(new SelectListItem { Value = pro.ID.ToString(), Text = pro.Name }); } } return(projectList); }
public static List <SelectListItem> GetCycles(IRepositary repo) { List <SelectListItem> projectList = new List <SelectListItem>(); projectList.Add(new SelectListItem { Value = "1", Text = "1" }); projectList.Add(new SelectListItem { Value = "2", Text = "2" }); projectList.Add(new SelectListItem { Value = "3", Text = "3" }); projectList.Add(new SelectListItem { Value = "4", Text = "4" }); projectList.Add(new SelectListItem { Value = "5", Text = "5" }); return(projectList); }
public BaseController(IRepositary repositary) { log = new Logger(); repo = repositary; }
public BaseController() { log = new Logger(); repo = new Repositary(); }
public ProjectsController(IRepositary repositary) : base(repositary) { userService = new UserService(repo); }
public CommentService(IRepositary repositary,string siteBaseUrl) { repo = new Repositary(); SiteBaseURL = siteBaseUrl; }
public DashboardController(IRepositary repositary) : base(repositary) { }
public UserService(IRepositary repositary, string siteBaseUrl) { repo = repositary; SiteBaseURL = siteBaseUrl; }
public static List<SelectListItem> GetCategories(IRepositary repo) { return repo.GetCategories(). Select(s => new SelectListItem { Value = s.ID.ToString(), Text = s.Name }).ToList(); }
public static List<SelectListItem> GetProjects(IRepositary repo, int teamId) { return repo.GetProjects(teamId). Select(s => new SelectListItem { Value = s.ID.ToString(), Text = s.Name }).ToList(); }
public UserService(IRepositary repositary) { repo = repositary; }
public ProductsController(IRepositary <Product> repositary) { _repositary = repositary; }
public TeamController(IRepositary repositary, ITeamManager teamManager) : base(repositary) { this.teamManager = teamManager; }
public UsersController(IRepositary repositary) : base(repositary) { }
public AccountController(IRepositary repositary, IUserAccountManager accountManager) : base(repositary) { this.accountManager = accountManager; }
public CommentService(IRepositary repositary, string siteBaseUrl) { repo = new Repositary(); SiteBaseURL = siteBaseUrl; }