Exemplo n.º 1
0
        public async Task <IActionResult> PerformerSave(PerformerVM model)
        {
            var request = new PerformerUpsertRequest()
            {
                Name = model.Name,
                PerformerCategory = model.PerformerCategory
            };


            if (model.ID == 0)
            {
                await _eventiApi.CreatePerformerAsync(request);
            }
            else
            {
                await _eventiApi.UpdatePerformerAsync(model.ID, request);
            }

            return(Redirect("/Administrator/Home/Index"));
        }