Exemplo n.º 1
0
        ///<summary>
        ///
        /// UserRightsMaster
        /// </summary>
        public virtual SP_UserRightsMaster_SelectAllResult GetUserRightsMasterDetail(clsUserRightsMaster obj)
        {
            SP_UserRightsMaster_SelectAllResult objResult = new SP_UserRightsMaster_SelectAllResult();

            try
            {
                objResult = (SP_UserRightsMaster_SelectAllResult)db.SP_UserRightsMaster_SelectAll();
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
                throw ex;
            }
            return(objResult);
        }
        ///<summary>
        ///UserRightsMaster
        /// </summary>
        ///
        public string GetUserRightsMasterDetail(clsUserRightsMaster obj)
        {
            string result = "";

            try
            {
                UserRightsMaster_Entity             objEntities = new UserRightsMaster_Entity();
                SP_UserRightsMaster_SelectAllResult objResult   = new SP_UserRightsMaster_SelectAllResult();
                objResult = objEntities.GetUserRightsMasterDetail(obj);
                result    = objResult.ToJSON();
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
            }
            finally
            {
                LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result);
            }
            return(result);
        }