public bool UpdateAccomodationMediaAttributes(DataContracts.DC_Accomodation_Media_Attributes AM) { using (BL_Accomodation objBL = new BL_Accomodation()) { return(objBL.UpdateAccomodationMediaAttributes(AM)); } }
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)); } }