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()); }
public IHttpActionResult Save(TaskRequest model) { _taskBusiness.Save(model); return(Ok()); }