public async Task Update(TablaGeneralDTO entity) { try { TablaGeneral tablaGeneral = _mapper.Map <TablaGeneral>(entity); await tablaGeneralRepository.Update(tablaGeneral); } catch (Exception ex) { throw ex; } }
public async Task <TablaGeneralDTO> GetById(int ind) { try { TablaGeneral cliente = await tablaGeneralRepository.GetById(ind); TablaGeneralDTO tablaGeneralDTO = _mapper.Map <TablaGeneralDTO>(cliente); return(tablaGeneralDTO); } catch (Exception ex) { throw ex; } }