Exemplo n.º 1
0
        public async Task <IActionResult> Save(AdministratorVM model)
        {
            var request = new AdministratorUpdateRequest()
            {
                FirstName = model.FirstName,
                LastName  = model.LastName,
                Email     = model.Email,
                Username  = model.Username
            };

            try
            {
                await _eventiApi.UpdateAdministratorAsync(model.ID, request);
            }
            catch
            {
            }

            return(Redirect("AdminProfile?id=" + model.ID));
        }