Beispiel #1
0
        public string DeleteProveedor(string idProveedor, string estado)
        {
            Usuario user = (Usuario)System.Web.HttpContext.Current.Session[Constant.nameUser];

            blCompras bl = new blCompras();

            Transaction transaction = Common.InitTransaction();

            if (estado.Equals("ACTIVO"))
            {
                estado = "INACTIVO";
            }
            else
            {
                estado = "ACTIVO";
            }

            int result = bl.DeleteProovedor(idProveedor, estado, out transaction);

            return(transaction.message);
            //if (transaction.type == TypeTransaction.OK)
            //{
            //    return result;
            //}
            //else
            //    return 0;
        }