// todo change folder name to resolve the namespace issue. private int CreateSprint(Database.Entities.Sprint sprint) { _dbContext.Sprints.Add(sprint); _dbContext.SaveChanges(); return(sprint.SprintId); }
public int CreateSprint(SprintCreateVM sprint) { var sprintToBeCreated = new Database.Entities.Sprint { ProjectId = sprint.ProjectId, Name = sprint.Name, StartDate = null, EndDate = null, IsBackLog = false }; return(CreateSprint(sprintToBeCreated)); }
public int CreateBackLogSprint(int projectId) { var sprintToBeCreated = new Database.Entities.Sprint { ProjectId = projectId, Name = null, StartDate = null, EndDate = null, IsBackLog = true }; return(CreateSprint(sprintToBeCreated)); }
public int CreateSprint(SprintCreateViewModel sprint) { var sprintToBeCreated = new Database.Entities.Sprint { ProjectId = sprint.ProjectId, Name = sprint.Name, StartDate = null, EndDate = null }; _dbContext.Sprints.Add(sprintToBeCreated); _dbContext.SaveChanges(); return(sprintToBeCreated.SprintId); }