Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public async Task<Season> AddAsync(Season entity)
  2. {
  3. var intersections = await CheckTimeIntersections(entity);
  4. if (intersections.Count > 0)
  5. throw new SeasonDateTimeException(entity, intersections);
  6.  
  7. return await _repo.AddAsync(entity);
  8. }
  9.  
  10. @CheckTimeIntersections
  11. public async Task<Season> AddAsync(Season entity)
  12. {
  13. return await _repo.AddAsync(entity);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement