Esempio n. 1
0
        public static UserType GetUserType(int id)
        {
            UserType ut;

            using (CustomClearviewEntities ctx = new CustomClearviewEntities())
            {
                UserTypeRepository repo = new UserTypeRepository(ctx);
                ut = repo.Find(id);
            }
            return(ut);
        }
 public DAL.Entity.UserType GetUserType(int id)
 {
     try
     {
         return(_IUserTypeRepository.Find(id));
     }
     catch (Exception exception)
     {
         exception.Log();
         return(null);
     }
 }