public Tender GetById(Guid id) { using (DataContext _context = new DataContext()) { return(TenderMapper.MapTenderPersistenceToTenderEntity(_context.Tenders.SingleOrDefault(c => c.Id.Equals(id)))); } }