Example #1
0
        public static int DeleteTask(int id)
        {
            DataLibrary.Models.TaskModel data = new Models.TaskModel
            {
                Id = id
            };
            string sql = @"delete from dbo.Tasks where Id=@Id";

            return(SqlDataAccess.DeleteData(sql, data));
        }
Example #2
0
        public static void DeletePerson(string Id)
        {
            string sql = @"DELETE dbo.Person WHERE PersonID = @Id";

            SqlDataAccess.DeleteData(sql, Id);
        }
Example #3
0
        public static int DelBlog(int num)
        {
            string sql = @"delete from dbo.BlogData where num=" + num + ";";

            return(SqlDataAccess.DeleteData(sql));
        }