Esempio n. 1
0
 public static TechInfo Create(TechInfo model)
 {
     if (model.Id == 0)
     {
         //Add
         int id = CategoryManage.AddTechInfo(model);
         model.Id = id;
     }
     else
     {
         CategoryManage.UpdateTechInfo(model);
     }
     return(model);
 }