public IActionResult GetByType(InterestType type) { var interest = _repo.GetInterestByType(type); if (interest == null) { return(NotFound("Not found")); } return(Ok(interest)); }