public ProjectRateModel GetForUserAndProject(int userId, int projectId)
 {
     return(this.Context.ProjectRates.Where(r => r.ProjectId == projectId && r.UserId == userId).ToList()
            .Select(p => ProjectRateMapper.ToProjectRateModel(p)).FirstOrDefault());
 }
 public List <ProjectRateModel> GetForProject(int projectId)
 {
     return(this.Context.ProjectRates.Where(r => r.ProjectId == projectId).ToList()
            .Select(p => ProjectRateMapper.ToProjectRateModel(p)).ToList());
 }