public IActionResult GetAquariumProfile(int profileId) { try { AquariumProfile data = _aquariumService.GetProfileById(profileId); return(new OkObjectResult(data)); } catch (Exception ex) { _logger.LogError($"GET /v1/Profile/{profileId}/ endpoint caught exception: { ex.Message } Details: { ex.ToString() }"); return(NotFound()); } }
public AquariumProfile UpdateProfile(AquariumProfile profile) { return(_aquariumDao.UpdateProfile(profile)); }