Пример #1
0
        /// <summary>
        /// Function to check the Existance of Current User.
        /// </summary>
        /// <param name="objLoginProp"></param>
        /// <returns>Bool</returns>
        /// <createdBy></createdBy>
        /// <createdOn>Apr-19,2016</createdOn>

        public bool IsUserExists(AdminUserProp objAdminUserProp, List <RoleList> lstRoles)
        {
            bool         result;
            AdminUserDAL objAdminUserDAL = new AdminUserDAL();  /// Creating The Object of AdminUserDAL

            CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "Called {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name));
            try
            {
                result = objAdminUserDAL.IsUserExists(objAdminUserProp, lstRoles); /// Getting The Result of Calling Method IsUserExists.
            }
            catch (Exception)
            {
                throw;
            }
            finally
            {
                CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "End {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name));
            }
            return(result);
        }