コード例 #1
0
ファイル: ProveedoresController.cs プロジェクト: LuisAP/Artex
        public ActionResult DeleteById(int id = -1)
        {
            if (id > 0)
            {
                String       errorMsg = string.Empty;
                ProveedorDAO CLDAO    = new ProveedorDAO();
                bool         result   = CLDAO.DeleteById(id);

                if (!result)
                {
                    errorMsg = "Error al borrar proveedor";
                }
            }
            return(View(ABSOLUTE_PATH));
        }