Ejemplo n.º 1
0
        public UserDetailsModel GetLoginCheck(Int64 PhoneNumber, string Password)
        {
            UserDetailsEntity       EntityObj = new UserDetailsEntity();
            UserDetailsModel        ModelObj  = new UserDetailsModel();
            InformationObjectMapper ObjMapper = new InformationObjectMapper();

            ServiceLayer.InformationService obj = new InformationService();
            EntityObj = obj.GetLoginCheck(PhoneNumber, Password);
            ModelObj  = ObjMapper.MapUserDetailsModelToEntity(EntityObj);
            return(ModelObj);
        }
Ejemplo n.º 2
0
        public UserDetailsModel AdminLoginCheck(Int64 PhoneNumber, string Password)
        {
            UserDetailsModel  UserModel  = new UserDetailsModel();
            UserDetailsEntity UserEntity = new UserDetailsEntity();

            ServiceLayer.InformationService obj       = new InformationService();
            InformationObjectMapper         objmapper = new InformationObjectMapper();

            UserEntity = obj.AdminLoginCheck(PhoneNumber, Password);
            UserModel  = objmapper.MapUserDetailsModelToEntity(UserEntity);
            return(UserModel);
        }