Example #1
0
        public HttpResponseMessage ConfirmPetSharingRequest(string token)
        {
            var response = new HttpResponseMessage();

            try
            {
                animalService.ConfirmPetSharingRequest(token);
                response.Content = new StringContent("Pet sharing request confirmed Successful!");
            }
            catch (CustomException)
            {
                response.Content = new StringContent("Link might be expired or already activated");
            }
            catch (Exception)
            {
                response.Content = new StringContent("Error Occured");
            }
            return(response);
        }