Esempio n. 1
0
        public void UpdateStatus()
        {
            Inquiry inquiry = new Inquiry();

            {
                inquiry.Id = 1;
                inquiry.InquiryStatusId = 2;
            }
            _inquiryRepo.UpdateStatus(inquiry);
            var actual = _inquiryRepo.Get(1);

            Assert.AreEqual(2, actual.InquiryStatusId);
        }
Esempio n. 2
0
        public Response <Inquiry> Update(Inquiry inquiry)
        {
            var response = new Response <Inquiry>();

            try
            {
                response.Data = new Inquiry();
                _inquiryRepo.UpdateStatus(inquiry);
                response.Success = true;
            }
            catch (Exception)
            {
                response.Data    = new Inquiry();
                response.Success = false;
            }
            return(response);
        }