0
Answer

C# Create a Task, StartTask, and EndTask

Ask a question
Moni Singh

Moni Singh

10y
849
1
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?