public void Insert(int IdMedicamento, int IdControl, int Cantidad, string Unidad)
        {
            TabRelMedicamentoTab item = new TabRelMedicamentoTab();

            item.IdMedicamento = IdMedicamento;

            item.IdControl = IdControl;

            item.Cantidad = Cantidad;

            item.Unidad = Unidad;


            item.Save(UserName);
        }
        public void Update(int IdRelMedicamentoTab, int IdMedicamento, int IdControl, int Cantidad, string Unidad)
        {
            TabRelMedicamentoTab item = new TabRelMedicamentoTab();

            item.MarkOld();
            item.IsLoaded = true;

            item.IdRelMedicamentoTab = IdRelMedicamentoTab;

            item.IdMedicamento = IdMedicamento;

            item.IdControl = IdControl;

            item.Cantidad = Cantidad;

            item.Unidad = Unidad;

            item.Save(UserName);
        }
 public bool Destroy(object IdRelMedicamentoTab)
 {
     return(TabRelMedicamentoTab.Destroy(IdRelMedicamentoTab) == 1);
 }
 public bool Delete(object IdRelMedicamentoTab)
 {
     return(TabRelMedicamentoTab.Delete(IdRelMedicamentoTab) == 1);
 }