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)); }
public JsonResult Add(TEST_MODEL model) { return(Json(BllContanier.Get <ITestBll>().AddTestModel(model))); }
public int AddTestModel(TEST_MODEL model) { this.Add(model); return(this.SaveChanges()); }