コード例 #1
0
 public bool UpdateAccomodationMediaAttributes(DataContracts.DC_Accomodation_Media_Attributes AM)
 {
     using (BL_Accomodation objBL = new BL_Accomodation())
     {
         return(objBL.UpdateAccomodationMediaAttributes(AM));
     }
 }
コード例 #2
0
ファイル: BL_Accomodation.cs プロジェクト: dilip07156/WCF
        public bool UpdateAccomodationMediaAttributes(DataContracts.DC_Accomodation_Media_Attributes AM)
        {
            if (AM.Accomodation_Media_Attributes_Id == null || AM.Accomodation_Media_Id == null)
            {
                throw new FaultException <DataContracts.DC_ErrorStatus>(new DataContracts.DC_ErrorStatus {
                    ErrorMessage = "Invalid Request", ErrorStatusCode = System.Net.HttpStatusCode.BadRequest
                });
            }

            using (DataLayer.DL_Accomodation obj = new DataLayer.DL_Accomodation())
            {
                return(obj.UpdateAccomodationMediaAttributes(AM));
            }
        }