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); }
public static int DelBlog(int num) { string sql = @"delete from dbo.BlogData where num=" + num + ";"; return(SqlDataAccess.DeleteData(sql)); }