Beispiel #1
0
 public bool CreateTask(TaskModel model)
 {
     model.Id = GuidUtils.NewSeqGuid();
     model.CreatedDate = DateTime.Now;
     model.ModifiedDate = DateTime.Now;
     model.Type = 1;
     TaskImpl a = new TaskImpl();
     a.Create(model);
     return true;
 }
Beispiel #2
0
 public void Create(TaskModel taskModel)
 {
     TaskRepository taskRepository = new TaskRepository();
     taskRepository.AddTask(taskModel.MapTask());
     taskRepository.Commit();
 }