Moni Singh

Moni Singh

  • NA
  • 3
  • 3.6k

C# Create a Task, StartTask, and EndTask

Mar 19 2014 11:13 AM
private SomeTask _someTask
public bool NewTask()
{
this._someTask.Task = new Tasks()
{
taskName = "Some New Task",
startDate = DateTime.Now,
endDate = DataTime.Now.AddDays(30)
};
//then the task gets inserted into the database
return true;
}
public void StartNewTask()
{
//Check to see if the task is created
//send a notification
}
public void EndTask()
{
//Cleans up the task, and marks it as done
}
I need help with the StartNewTask() and EndTask(), I am not sure how to complete those two methods. Would someone please help me go the right direction?