示例#1
0
 public void BenchMarkAddTaskTest()
 {
     try
     {
         model = new TaskViewModel()
         {
             TaskName     = "Task234 by Benhc Mark",
             StartDate    = System.DateTime.Now,
             Priority     = 20,
             ParentTaskId = 1
         };
         //Number of records
         _taskBusiness.Save(model);
     }
     catch (Exception ex)
     {
     }
 }
 public IHttpActionResult Save(TaskViewModel model)
 {
     _taskBusiness.Save(model);
     return(Ok());
 }
示例#3
0
 public IHttpActionResult Save(TaskRequest model)
 {
     _taskBusiness.Save(model);
     return(Ok());
 }