public static int Insertar(Localidad objProxy) { ValidationException x = new ValidationException(); if (string.IsNullOrEmpty(objProxy.Slocacion_nm)) x.AgregarError("Ingrese el nombre del nombre"); if (string.IsNullOrEmpty(objProxy.Slocacion_desc)) x.AgregarError("Ingrese el nombre del descripcion"); if (objProxy.Sstado) x.AgregarError("Ingrese el nombre del estado"); if (objProxy.Isubarea<=0) x.AgregarError("Ingrese el sub-area"); //if (x.Cantidad > 0) // throw x; DAOLocalidad daoProxy = new DAOLocalidad(); return daoProxy.Insert(objProxy.Slocacion_nm, objProxy.Slocacion_desc, objProxy.Sstado, objProxy.Isubarea); }