private int GetStatu()
 {
     try
     {
         EfStatusDal statusDal = new EfStatusDal();
         var         datas     = statusDal.GetList();
         Random      rndRandom = new Random();
         return(rndRandom.Next(1, datas.Count));
     }
     catch (Exception e)
     {
         return(2);
     }
 }
示例#2
0
 public List <Status> GetAll()
 {
     return(_efStatusDal.GetList());
 }