Пример #1
0
        public int SaveTaskLinks(Entity.Sales.Tasks Model)
        {
            TasksDbModel DbModel = new TasksDbModel();

            Model.CopyPropertiesTo(DbModel);
            return(TasksDataAccess.SaveTaskLinks(DbModel));
        }
Пример #2
0
        public List <Entity.Sales.TaskPriority> GetTaskPriority()
        {
            List <Entity.Sales.TaskPriority> TaskPriorityList = new List <Entity.Sales.TaskPriority>();

            TasksDataAccess.GetTaskPriority().CopyListTo(TaskPriorityList);
            return(TaskPriorityList);
        }
Пример #3
0
        public List <Entity.Sales.TaskRelatedTo> GetTaskRelatedTo()
        {
            List <Entity.Sales.TaskRelatedTo> TaskRelatedList = new List <Entity.Sales.TaskRelatedTo>();

            TasksDataAccess.GetTaskRelatedTo().CopyListTo(TaskRelatedList);
            return(TaskRelatedList);
        }
Пример #4
0
        public List <Entity.Sales.GetTasks> GetAllTasks(Entity.Sales.GetTasksParam Param)
        {
            List <Entity.Sales.GetTasks> AllTaskList = new List <Entity.Sales.GetTasks>();
            GetTasksParamDbModel         p           = new GetTasksParamDbModel();

            Param.CopyPropertiesTo(p);
            TasksDataAccess.GetAllTasks(p).CopyListTo(AllTaskList);
            return(AllTaskList);
        }
Пример #5
0
 public int DeleteTasks(int Id)
 {
     return(TasksDataAccess.DeleteTask(Id));
 }
Пример #6
0
 public Entity.Sales.Tasks GetTaskById(int Id)
 {
     Entity.Sales.Tasks Task = new Entity.Sales.Tasks();
     TasksDataAccess.GetTaskById(Id).CopyPropertiesTo(Task);
     return(Task);
 }