Пример #1
0
 public IEnumerable <ChangeViewModel> Get(int clientId)
 {
     try
     {
         return(ChangeRepository.GetChangesForClient(clientId).Select(CreateChangeViewModel));
     }
     catch (ClientNotFoundException)
     {
         throw new HttpResponseException(HttpStatusCode.Unauthorized);
     }
 }