Пример #1
0
 public IEnumerable <Model.Contracts.Task> GetTasksByProjectId(int projectId)
 {
     return(tasksRepository
            .SearchData(t => t.ProjectId == projectId)
            .Select(t => t.AutoMapObject <DB.Task, Model.Contracts.Task>())
            .OrderByDescending(c => c.TaskId));
 }