public void SetCompleted(int taskId) { using (var context = new RealTimeTasksDataContext(_connectionString)) { context.ExecuteCommand("UPDATE TaskItems SET IsCompleted = 1 WHERE Id = {0}", taskId); } }
public void SetDoing(int taskId, int userId) { using (var context = new RealTimeTasksDataContext(_connectionString)) { context.ExecuteCommand("UPDATE TaskItems SET HandledBy = {0} WHERE Id = {1}", userId, taskId); } }