public IHttpActionResult BadgeByID(int id) { var badge = _badgeService.GetBadgeByID(id); if (badge != null) { return(Ok(badge)); } return(NotFound()); }
public void WhenGettingBadgeByID_AssertReturnedBadge(int id) { var badge = _badgeService.GetBadgeByID(id); Asset.Equals(id, badge.ID); }