Exemplo n.º 1
0
        public async Task <IActionResult> OnGet()
        {
            Input = await _iAServiceObituario.GetIndexdAsync();

            Input.IdCemiterio = 1;

            return(Page());
        }
Exemplo n.º 2
0
 public async Task SaveAsync(ObituarioVM model)
 {
     try
     {
         var obj = _mapper.Map <Obituario>(model);
         await _serviceObituario.SaveAsync(obj);
     }
     catch (Exception err)
     {
         throw err;
     }
 }
Exemplo n.º 3
0
        public async Task <ObituarioVM> GetIndexdAsync()
        {
            try
            {
                var model = new ObituarioVM();

                model.SelectListCemiterio = await _serviceCemiterio.GetSelectList();

                return(model);
            }
            catch (Exception err)
            {
                throw err;
            }
        }