Beispiel #1
0
 public ActionResult CheckSchoolName(string schoolName)
 {
     if (!schoolName.IsNullOrEmpty())
     {
         ISchoolInfoService schoolInfoService = StructureMap.ObjectFactory.GetInstance <ISchoolInfoService>();
         if (schoolInfoService.GetObject(x => x.SchoolName == schoolName) == null)
         {
             return(Json(false, JsonRequestBehavior.AllowGet));
         }
     }
     return(Json(true, JsonRequestBehavior.AllowGet));
 }
Beispiel #2
0
 public SchoolUserController(ISchoolInfoService service)
 {
     SchoolInfoService = service;
 }
Beispiel #3
0
 public UserInfoService(ISchoolInfoService schoolInfoService)
 {
     _schoolInfoService = schoolInfoService;
 }