public void InsertTask(Task task)
 {
     task.Id = Guid.NewGuid();
     repo.Insert(task);
     //return task list
     GetTasks(task.OwnerId);
 }
 public void UpdateTask(Task task)
 {
     repo.UpdateWithWhere(values: new { Description = task.Description, Completed = task.Completed}, where: new { Id = task.Id });
     GetTasks(task.OwnerId);
 }