Beispiel #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));
        }
        public static void DeletePerson(string Id)
        {
            string sql = @"DELETE dbo.Person WHERE PersonID = @Id";

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

            return(SqlDataAccess.DeleteData(sql));
        }