Example #1
0
 public int AddTestModel(TEST_MODEL model)
 {
     if (string.IsNullOrEmpty(model.Name) || model.Age == 0 || string.IsNullOrEmpty(model.Language))
     {
         return(0);
     }
     return(DalContainer.Get <ITestDal>().AddTestModel(model));
 }
Example #2
0
 public JsonResult Add(TEST_MODEL model)
 {
     return(Json(BllContanier.Get <ITestBll>().AddTestModel(model)));
 }
Example #3
0
 public int AddTestModel(TEST_MODEL model)
 {
     this.Add(model);
     return(this.SaveChanges());
 }