Ejemplo n.º 1
0
        public async Task ReverseJunk(EnquiryJunkUpdateInputDto input)
        {
            var inquiry  = (from r in _inquiryRepository.GetAll() where r.Id == input.Id select r).FirstOrDefault();
            var inquirys = inquiry.MapTo <Inquiry>();

            inquirys.Junk     = null;
            inquirys.JunkDate = null;
            await _inquiryRepository.UpdateAsync(inquirys);
        }
Ejemplo n.º 2
0
        public async Task createORupdateInquiryJunk(EnquiryJunkUpdateInputDto input)
        {
            var inquiry  = (from r in _inquiryRepository.GetAll() where r.Id == input.Id select r).FirstOrDefault();
            var inquirys = inquiry.MapTo <Inquiry>();

            inquirys.Junk     = input.Junk;
            inquirys.JunkDate = DateTime.Now;
            await _inquiryRepository.UpdateAsync(inquirys);
        }