Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //KORT
- partimInfo.Partim = _partimRepository
- .Table
- .FirstOrDefault(m => m.Code == partimInformation.Partim.Id)
- ?? new Partim
- {
- Code = partimInformation.Partim.Id,
- Name = partimInformation.Partim.Naam
- }
- //LANG
- if (_partimRepository.Table.Any(p => p.Code == partimInformation.Partim.Id))
- {
- partimInfo.Partim = _partimRepository
- .Table
- .First(m => m.Code == partimInformation.Partim.Id);
- }
- else
- {
- partimInfo.Partim = new Partim
- {
- Code = partimInformation.Partim.Id,
- Name = partimInformation.Partim.Naam
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement