Exemple #1
0
        public int DeleteTask(UserTask t)
        {
            string queryString = "Delete FROM Tasks WHERE Id = @Id";

            return(conn.Execute(queryString, t));
        }
Exemple #2
0
        public int EditTaskById(UserTask t)
        {
            string queryString = "UPDATE Tasks SET OwnerId = @OwnerId, Description = @Description, DueDate = @DueDate, Completed = @Completed WHERE Id = @Id";

            return(conn.Execute(queryString, t));
        }
Exemple #3
0
        public int MarkAsComplete(UserTask t)
        {
            string queryString = "UPDATE Tasks SET Completed = 1 WHERE Id = @Id";

            return(conn.Execute(queryString, t));
        }
Exemple #4
0
        public int EditTaskById(UserTask t)
        {
            string editString = "UPDATE IdentityTasks SET TaskDescription = @TaskDescription, DueDate = @DueDate WHERE Id = @Id";

            return(conn.Execute(editString, t));
        }