C# Class TeamBins.DataAccess.ProjectRepository

Inheritance: IProjectRepository
Show file Open project: kshyju/ProjectPlanningTool

Public Methods

Method Description
Delete ( int projectId ) : void
DoesProjectsExist ( int teamId ) : bool
GetDefaultProjectForTeam ( int teamId ) : ProjectDto
GetDefaultProjectForTeamMember ( int teamId, int userId ) : Task
GetIssueCountForProject ( int projectId ) : int
GetProject ( int id ) : ProjectDto
GetProjects ( int teamId ) : IEnumerable
ProjectRepository ( IConfiguration configuration ) : Dapper
Save ( CreateProjectVM model ) : void

Private Methods

Method Description
SetAsDefaultProjectIfNotExists ( CreateProjectVM model ) : void

Method Details

Delete() public method

public Delete ( int projectId ) : void
projectId int
return void

DoesProjectsExist() public method

public DoesProjectsExist ( int teamId ) : bool
teamId int
return bool

GetDefaultProjectForTeam() public method

public GetDefaultProjectForTeam ( int teamId ) : ProjectDto
teamId int
return ProjectDto

GetDefaultProjectForTeamMember() public method

public GetDefaultProjectForTeamMember ( int teamId, int userId ) : Task
teamId int
userId int
return Task

GetIssueCountForProject() public method

public GetIssueCountForProject ( int projectId ) : int
projectId int
return int

GetProject() public method

public GetProject ( int id ) : ProjectDto
id int
return ProjectDto

GetProjects() public method

public GetProjects ( int teamId ) : IEnumerable
teamId int
return IEnumerable

ProjectRepository() public method

public ProjectRepository ( IConfiguration configuration ) : Dapper
configuration IConfiguration
return Dapper

Save() public method

public Save ( CreateProjectVM model ) : void
model CreateProjectVM
return void