public virtual void CreateTask(Task task)
        {
            var context = new TaskDataContext();

            context.AddObject(TaskDataContext.TaskTable, task.ToRow());
            context.SaveChanges();
        }
        public virtual void UpdateTask(Task task)
        {
            var context = new TaskDataContext();
            var taskRow = task.ToRow();

            context.AttachTo(TaskDataContext.TaskTable, taskRow, "*");
            context.UpdateObject(taskRow);
            context.SaveChanges();
        }