public static void Update(TipoDeAgencia item) { try { TipoDeAgenciaEntity entity; entity = TipoDeAgenciaMappers.Get(item); TipoDeAgenciaDao.Update(entity); } catch (Exception) { throw; } }
public static int Add(TipoDeAgencia item) { try { TipoDeAgenciaEntity entity; entity = TipoDeAgenciaMappers.Get(item); item.Id = TipoDeAgenciaDao.Add(entity); return(item.Id); } catch (Exception) { throw; } }
public static TipoDeAgencia Get(int id) { try { TipoDeAgencia item; TipoDeAgenciaEntity entity; entity = TipoDeAgenciaDao.Get(id); item = TipoDeAgenciaMappers.Get(entity); return(item); } catch (Exception) { throw; } }