C#
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?
Answers
Know the answer? Post it. Somebody with the same question will find it here.