/// <summary> /// Method to Get List of UserGroups /// </summary> /// <param name="argEn">UserGroups Entity as an Input.</param> /// <returns>Returns List of UserGroups</returns> /// <summary> public List <UserGroupsEn> GetUserGroupList(UserGroupsEn argEn) { try { UserGroupsDAL loDs = new UserGroupsDAL(); return(loDs.GetUserGroupList(argEn)); } catch (Exception ex) { throw ex; } }
/// Method to Get UserGroups Entity /// </summary> /// <param name="argEn">UserGroups Entity is an Input.UserGroupId and UserGroupName as Input Properties.</param> /// <returns>Returns UserGroups Entity</returns> public UserGroupsEn GetItem(UserGroupsEn argEn) { try { UserGroupsDAL loDs = new UserGroupsDAL(); return(loDs.GetItem(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Delete UserGroups /// </summary> /// <param name="argEn">UserGroups Entity is an Input.UserGroupId as Input Property.</param> /// <returns>Returns Boolean</returns> public bool Delete(UserGroupsEn argEn) { bool flag; using (TransactionScope ts = new TransactionScope()) { try { UserGroupsDAL loDs = new UserGroupsDAL(); flag = loDs.Delete(argEn); ts.Complete(); } catch (Exception ex) { throw ex; } } return(flag); }