/// <summary> /// Function To Get The All Users Role. /// </summary> /// <param name="objFindUserProp"></param> /// <returns>List</returns> /// <createdBy></createdBy> /// <createdOn>Apr-26,2016</createdOn> public List <string> RoleList() { List <string> objRoleList = new List <string>(); try { FindUserDAL objFindUserDAL = new FindUserDAL(); CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "Called {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); objRoleList = objFindUserDAL.RoleList(); }catch (Exception) { throw; } finally { CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "End4 {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); } return(objRoleList); }
/// <summary> /// Function To Remove the User Details /// </summary> /// <param name="objFindUserProp"></param> /// <returns> /// Int</returns> /// <createdBy></createdBy> /// <createdOn>Apr-29,2016</createdOn> public int RemoveUserDetails(FindUserProp objFindUserProp) { int value = 0; try { FindUserDAL objFindUserDAL = new FindUserDAL(); CommonDAL.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, "Called {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); value = objFindUserDAL.RemoveUserDetails(objFindUserProp); } 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(value); }