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)); }