示例#1
0
        public int DoSaveClientComplaint(ClientComplaint complaint, Identification identification)
        {
            logger.Log(LogLevel.Trace, AppLib.GetCaller(logger));

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

            using (ClientDAO dao = new ClientDAO())
            {
                return dao.SaveClientComplaint(complaint, identification);
            }
        }