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); }
public Task Create(Task task) { task.Id = Utility.GetGUID(); taskDAL.Create(task); return(task); }