public IHttpActionResult BadgeTypeByID(int id) { var badgeType = _badgeService.GetBadgeTypeByID(id); if (badgeType != null) { return(Ok(badgeType)); } return(NotFound()); }
public void WhenGettingBadgeTypeByID_AssertReturnedBadgeType(int id) { var badgeType = _badgeService.GetBadgeTypeByID(id); Asset.Equals(id, badgeType.ID); }