예제 #1
0
 public static List <StaffDto> GetAllStaffs()
 {
     if (allStaffs == null || allStaffs.Count == 0)
     {
         allStaffs = StaffDao.GetAll().ToList();
     }
     return(allStaffs);
 }
예제 #2
0
        public JsonResult ExsitsEmail(string sta_email, int?sta_id)
        {
            StaffDao     dao     = new StaffDao();
            List <staff> lts_sta = dao.GetAll();

            if (sta_id != null)
            {
                lts_sta.Remove(dao.GetById(sta_id));
            }
            return(Json(!lts_sta.Any(x => x.sta_email.Trim().ToLower() == sta_email.Trim().ToLower()), JsonRequestBehavior.AllowGet));
        }
예제 #3
0
 public List <StaffDTO> getAll()
 {
     return(Sdao.GetAll());
 }