public bool ManageProduct(int ProductId, string ProductName, DateTime StartDate, DateTime EndDate, string Description, int Mode) { try { int rs = pc.ManageProduct(ProductId, ProductName, StartDate, EndDate, Description, Mode); if (rs > 0) { return(true); } else { return(false); } } catch (Exception ex) { throw ex; } }