Ejemplo n.º 1
0
        public IActionResult Create(CollectionCreateModel model)
        {
            Collection collection = CreateCollectionFromModel(model);

            collection.SelectedFieldsMask = CreateMaskOfSelectedFields(model.AdditionalFields);
            SetCollectionImageInBytes(model.Image, collection);
            dbManager.AddCollection(collection);
            return(RedirectToAction("Index"));
        }