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());
     }
 }
Esempio n. 2
0
 public AquariumProfile UpdateProfile(AquariumProfile profile)
 {
     return(_aquariumDao.UpdateProfile(profile));
 }