public JsonResult <Models.SP_GetAllUserPageRelations_Result> GetUserPageRaltion(int UPRID)
        {
            EntityMapperUserPageRelation <DataAccessLayer.SP_GetUserPageRelationById_Result, Models.SP_GetAllUserPageRelations_Result> mapObj = new EntityMapperUserPageRelation <DataAccessLayer.SP_GetUserPageRelationById_Result, Models.SP_GetAllUserPageRelations_Result>();

            DataAccessLayer.SP_GetUserPageRelationById_Result UserPageRelationsList = DAL.GetUserPageRelationById(UPRID);
            Models.SP_GetAllUserPageRelations_Result          UserPageRelation      = new Models.SP_GetAllUserPageRelations_Result();
            UserPageRelation = mapObj.Translate(UserPageRelationsList);

            return(Json <Models.SP_GetAllUserPageRelations_Result>(UserPageRelation));
        }
        public JsonResult <List <Models.SP_GetAllUserPageRelations_Result> > GetUserPageRaltions(int URID)
        {
            EntityMapperUserPageRelation <DataAccessLayer.SP_GetAllUserPageRelations_Result, Models.SP_GetAllUserPageRelations_Result> mapObj = new EntityMapperUserPageRelation <DataAccessLayer.SP_GetAllUserPageRelations_Result, Models.SP_GetAllUserPageRelations_Result>();

            List <DataAccessLayer.SP_GetAllUserPageRelations_Result> UserPageRelationsList = DAL.GetAllUserPageRelations(URID);
            List <Models.SP_GetAllUserPageRelations_Result>          UserPageRelations     = new List <Models.SP_GetAllUserPageRelations_Result>();

            foreach (var item in UserPageRelationsList)
            {
                UserPageRelations.Add(mapObj.Translate(item));
            }
            return(Json <List <Models.SP_GetAllUserPageRelations_Result> >(UserPageRelations));
        }