예제 #1
0
        public int DoSaveCatalogItem(CatalogItem catalogItem, Identification identification)
        {
            logger.Log(LogLevel.Trace, AppLib.GetCaller(logger));

            //Validate Object
            if (!catalogItem.ValidateModel())
                throw new FaultException<ServiceFault>(new ServiceFault(catalogItem.CurrentErrors), new FaultReason(SysVars.InvalidFormat));

            using (CatalogDAO dao = new CatalogDAO())
            {
                return dao.SaveCatalogItem(catalogItem, identification);
            }
        }