Ejemplo n.º 1
0
        public async Task <IActionResult> CreateAttribute(string name)
        {
            Models.Attribute attribute = new Models.Attribute()
            {
                Name = name
            };
            await _attributeService.AddAttribute(attribute);

            return(RedirectToAction("Index"));
        }