Exemplo n.º 1
0
        /// <summary>
        /// Updates or adds a new user
        /// </summary>
        private async void OnSaveCommand()
        {
            try
            {
                await _employeeApiService.AddOrEditEmployee(Employee.Value);

                _navigationService.GoBack();
            }
            catch (Exception e)
            {
                _loggingService.LogInformation("Error during insertion of new Employee", e);
                _dialogService.ShowWarning(e.Message);
            }
        }