Exemplo n.º 1
0
        public async Task <IActionResult> TemplateEdit(ViewModelFields model)
        {
            var updateRequest = await _viewModelService.UpdateViewModelFieldTemplateAsync(model);

            if (updateRequest.IsSuccess)
            {
                return(RedirectToAction("OrderFields", new { Id = updateRequest.Result }));
            }
            ModelState.AppendResultModelErrors(updateRequest.Errors);
            return(View(model));
        }