public Envio GetByID(int ID) { Envio result = default(Envio); var EnvioDAL = new EnvioDAL(); result = EnvioDAL.ReadBy(ID); return(result); }
public Envio Create(Envio Envio) { Envio result = default(Envio); var EnvioDAL = new EnvioDAL(); result = EnvioDAL.Create(Envio); return(result); }
public List <Envio> ListarTodos() { List <Envio> result = default(List <Envio>); var EnvioDAL = new EnvioDAL(); result = EnvioDAL.Read(); return(result); }
public bool Delete(int ID) { var EnvioDAL = new EnvioDAL(); try { EnvioDAL.Delete(ID); return(true); } catch { Console.WriteLine("Error al eliminar el elemento"); return(false); } }
public bool Edit(Envio Envio) { var EnvioDAL = new EnvioDAL(); try { EnvioDAL.Update(Envio); return(true); } catch (Exception ex) { Console.WriteLine("Error al editar el elemento"); return(false); } }