Пример #1
0
        public UserServices(IInventoryAAARepository <dbentities.UserDetail> userDetailServices,
                            IInventoryAAARepository <dbentities.UserRoleDetail> userRoleDetailServices,
                            IInventoryAAARepository <dbentities.UserInformationDetail> userInformationDetailServices,
                            IInventoryAAARepository <dbentities.UserMenuRoleDetail> userMenuRoleServices,
                            IInventoryAAARepository <dbentities.MenuDetail> menuServices)
        {
            this._userDetailServices            = userDetailServices;
            this._userRoleDetailServices        = userRoleDetailServices;
            this._userInformationDetailServices = userInformationDetailServices;
            this._userMenuRoleServices          = userMenuRoleServices;
            this._menuServices = menuServices;

            this.userDetails            = new dbentities.UserDetail();
            this.userRoleDetails        = new dbentities.UserRoleDetail();
            this.userInformationDetails = new dbentities.UserInformationDetail();
        }
Пример #2
0
        public static dbentities.UserInformationDetail DtoToEntity(this UserInformationDetailRequest request)
        {
            dbentities.UserInformationDetail entity = null;

            if (request != null)
            {
                entity = new dbentities.UserInformationDetail
                {
                    UserID    = request.UserId,
                    FirstName = request.FirstName,
                    LastName  = request.LastName,
                };
            }

            return(entity);
        }