public async Task <ActionResult> Edit(long id) { try { var model = Mapper.Map <Screen, ScreenModel>(await _screenService.GetIdAsync(id)); return(View(model)); } catch (Exception e) { ShowMessageDialog(MensagensResource.ErroCarregar, e); return(RedirectToAction("Index")); } }