示例#1
0
 public bool IsRoleExist(DataContracts.Admin.DC_Roles RlE)
 {
     using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
     {
         return(obj.IsRoleExist(RlE));
     }
 }
示例#2
0
 public List <DataContracts.Admin.DC_SiteMap> GetSiteMapMasterByUserRole(string UserName)
 {
     using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
     {
         return(obj.GetSiteMapMasterByUserRole(UserName));
     }
 }
示例#3
0
 public bool AddUpdateRoleEntityType(DataContracts.Admin.DC_Roles RlE)
 {
     using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
     {
         return(obj.AddUpdateRoleEntityType(RlE));
     }
 }
示例#4
0
 public bool AddSiteMapMaster(DataContracts.Admin.DC_SiteMap SM)
 {
     using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
     {
         return(obj.AddSiteMapMaster(SM));
     }
 }
示例#5
0
 public string GetApplicationName(string username)
 {
     using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
     {
         return(obj.GetApplicationName(username));
     }
 }
示例#6
0
 public DataContracts.DC_Message AddUpdateApplication(DataContracts.Admin.DC_ApplicationMgmt apmgmt)
 {
     using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
     {
         return(obj.AddUpdateApplication(apmgmt));
     }
 }
示例#7
0
 public bool IsRoleAuthorizedForUrl(DataContracts.Admin.DC_RoleAuthorizedForUrl RAForUrl)
 {
     using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
     {
         return(obj.IsRoleAuthorizedForUrl(RAForUrl));
     }
 }
示例#8
0
 public DataContracts.DC_Message UsersSoftDelete(DataContracts.Admin.DC_UserDetails _objUserDetails)
 {
     using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
     {
         return(obj.UsersSoftDelete(_objUserDetails));
     }
 }
示例#9
0
 public DataContracts.Admin.DC_UserEntity GetUserEntityDetails(DataContracts.Admin.DC_UserEntity UE)
 {
     using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
     {
         return(obj.GetUserEntityDetails(UE));
     }
 }
示例#10
0
 public DataContracts.DC_Message AddUpdateUserEntity(DataContracts.Admin.DC_UserEntity UE)
 {
     using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
     {
         return(obj.AddUpdateUserEntity(UE));
     }
 }
示例#11
0
 public IList <DataContracts.Admin.DC_EntityDetails> GetEntity(DataContracts.Admin.DC_EntityDetails ED)
 {
     using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
     {
         return(obj.GetEntity(ED));
     }
 }
示例#12
0
        //public List<DataContracts.Admin.DC_Roles> GetAllRoleByEntityType(DataContracts.Admin.DC_Roles RlE)
        //{
        //    using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
        //    {
        //        return obj.GetAllRoleByEntityType(RlE);
        //    }
        //}
        //public List<DataContracts.Admin.DC_Roles> GetAllRoleByApplication(DataContracts.Admin.DC_Roles RlE, string PageNo, string PageSize)
        //{
        //    int iPageNo;
        //    int iPageSize;
        //    if (!int.TryParse(PageNo, out iPageNo) || !int.TryParse(PageSize, out iPageSize))
        //    {
        //        throw new FaultException<DataContracts.DC_ErrorStatus>(new DataContracts.DC_ErrorStatus { ErrorMessage = "Invalid Request", ErrorStatusCode = System.Net.HttpStatusCode.BadRequest });
        //    }
        //    else
        //    {
        //        using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
        //        {
        //            return obj.GetAllRoleByApplication(RlE,iPageNo, iPageSize);
        //        }
        //    }
        //}
        #endregion

        #region User EntityTagging
        public IList <DataContracts.Admin.DC_EntityType> GetEntityType()
        {
            using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
            {
                return(obj.GetEntityType());
            }
        }
示例#13
0
        public IList <DataContracts.Admin.DC_SiteMap> GetSiteMapMaster(string ID, string applicationID)
        {
            int iID;

            if (!int.TryParse(ID, out iID))
            {
                throw new FaultException <DataContracts.DC_ErrorStatus>(new DataContracts.DC_ErrorStatus {
                    ErrorMessage = "Invalid Request", ErrorStatusCode = System.Net.HttpStatusCode.BadRequest
                });
            }
            else
            {
                using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
                {
                    return(obj.GetSiteMapMaster(iID, applicationID));
                }
            }
        }
示例#14
0
        public List <DataContracts.Admin.DC_Roles> GetAllRole(string applicationID, string PageNo, string PageSize)
        {
            int iPageNo;
            int iPageSize;

            if (!int.TryParse(PageNo, out iPageNo) || !int.TryParse(PageSize, out iPageSize))
            {
                throw new FaultException <DataContracts.DC_ErrorStatus>(new DataContracts.DC_ErrorStatus {
                    ErrorMessage = "Invalid Request", ErrorStatusCode = System.Net.HttpStatusCode.BadRequest
                });
            }
            else
            {
                using (DataLayer.DL_Admin obj = new DataLayer.DL_Admin())
                {
                    return(obj.GetAllRole(applicationID, iPageNo, iPageSize));
                }
            }
        }