public void InsertItem(string str) { if (str.Length > 0 && (!am.ExisteArea(str))) { am.InsertClase(new AreaDTO { Descriptor = str }); } }
private string validarRegistro(Area newpart) { bool aux = areaManager.ExisteArea(newpart.Descriptor); string msgValidate = ""; if (aux && (newpart.Areaid != currentArea.Areaid)) { msgValidate = msgValidate + "Area ya Existente.\n"; } if (newpart.Descriptor == "") { msgValidate = msgValidate + "Area Nombre no puede ser dejado en Blanco\n"; } if (newpart.Mesas == 0 || newpart.Mesas.ToString() == "") { msgValidate = msgValidate + "Mesas no puede ser 0\n"; } return(msgValidate); }