Пример #1
0
        public int UpdateInquiryDetail(Models.DomainModels.InquiryDetail inquiryDetail)
        {
            inquiryDetailRepository.Update(inquiryDetail);
            inquiryDetailRepository.SaveChanges();

            return(inquiryDetail.InquiryDetailID);
        }
Пример #2
0
        public int AddInquiryDetail(Models.DomainModels.InquiryDetail inquiryDetail)
        {
            inquiryDetailRepository.Add(inquiryDetail);
            inquiryDetailRepository.SaveChanges();

            return(inquiryDetail.InquiryDetailID); // If Exception occurs this line will not be executed
        }