public static ProductCategoryModel LoadCategory(int?id) { string sql = @"select * from dbo.Category where CategoryId = @Id"; return(SqlDataAccess.LoadSingleDataById <ProductCategoryModel>(sql, id)); }
public static ImageModel LoadImage(int?id) { string sql = @"select * from dbo.ProductImages where Id_Product = @Id"; return(SqlDataAccess.LoadSingleDataById <ImageModel>(sql, id)); }