Sanjay Sharma

Sanjay Sharma

  • 990
  • 409
  • 25.4k

web delvelopment + static

Apr 19 2018 5:41 AM
Hi we have following desgin
 
 public class Product{
  public static int AddProduct(agruments....){}
  public static int UpdateProduct(agruments....){} 
}
 
caller from aspx.cs
 
Product.AddProduct()
 
Question is if above design is advisable in webdevelopment. I learnt static usage is not incourage in web design please advice. ( Provide ref too). 

Answers (1)