public int SaveTaskLinks(Entity.Sales.Tasks Model) { TasksDbModel DbModel = new TasksDbModel(); Model.CopyPropertiesTo(DbModel); return(TasksDataAccess.SaveTaskLinks(DbModel)); }
public List <Entity.Sales.TaskPriority> GetTaskPriority() { List <Entity.Sales.TaskPriority> TaskPriorityList = new List <Entity.Sales.TaskPriority>(); TasksDataAccess.GetTaskPriority().CopyListTo(TaskPriorityList); return(TaskPriorityList); }
public List <Entity.Sales.TaskRelatedTo> GetTaskRelatedTo() { List <Entity.Sales.TaskRelatedTo> TaskRelatedList = new List <Entity.Sales.TaskRelatedTo>(); TasksDataAccess.GetTaskRelatedTo().CopyListTo(TaskRelatedList); return(TaskRelatedList); }
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); }
public int DeleteTasks(int Id) { return(TasksDataAccess.DeleteTask(Id)); }
public Entity.Sales.Tasks GetTaskById(int Id) { Entity.Sales.Tasks Task = new Entity.Sales.Tasks(); TasksDataAccess.GetTaskById(Id).CopyPropertiesTo(Task); return(Task); }