Exemple #1
0
        public virtual void Create(TaskDataModel task)
        {
            if (task.fileTemplate != null)
            {
                string filePath = FileManager.SaveFile(task.fileTemplate);
                if (!String.IsNullOrEmpty(filePath))
                {
                    task.Template = filePath;
                }
                ;
            }

            TaskDAL.Create(task);
        }
Exemple #2
0
 public Task Create(Task task)
 {
     task.Id = Utility.GetGUID();
     taskDAL.Create(task);
     return(task);
 }