Пример #1
0
        public CategoryServices(
            IInventoryAAARepository <dbentities.Categories> categoryServices)
        {
            this._categoryServices = categoryServices;

            this.categories = new dbentities.Categories();
        }
Пример #2
0
        public static dbentities.Categories DtoToEntity(this CategoryDetailRequest request)
        {
            dbentities.Categories entity = null;

            if (request != null)
            {
                entity = new dbentities.Categories
                {
                    CategoryID   = request.CategoryId,
                    CategoryName = request.CategoryName,
                    IsActive     = request.IsActive,
                    CreatedBy    = request.CreatedBy,
                    CreatedTime  = request.CreatedTime,
                    ModifiedBy   = request.ModifiedBy,
                    ModifiedTime = request.ModifiedTime
                };
            }

            return(entity);
        }