Exemplo n.º 1
0
        public void UpdateFailed(object sender, UpdateFailedArgs e)
        {
            EthnicityOptions = _ethnicityInformation.GetEthnicities().Select(x => new SelectListItem
            {
                Text  = x.Name,
                Value = x.Id + ""
            }).ToList().Result;

            _succeeded = false;
            ModelState.AddModelError(string.Empty, e.Exception.Message);
        }
Exemplo n.º 2
0
 protected virtual void OnUpdateFailed(UpdateFailedArgs e) => UpdateFailed?.Invoke(this, e);