public void CreateClient(CreateJuridicalClientViewModel client)
 {
     var juridicalClient = AutoMapper.Mapper.Map<CreateJuridicalClientViewModel, JuridicalClient>(client);
     creditUow.JuridicalClients.InsertOrUpdate(juridicalClient);
     creditUow.Commit();
     client.Id = juridicalClient.Id;
 }
 public HttpResponseMessage CreateOrUpdateJuridicalClient(CreateJuridicalClientViewModel juridicalClient)
 {
     var model = ProcessViewModel(juridicalClient, juridicalClientValidationService, juridicalClientsService.CreateClient);
     return Request.CreateResponse(HttpStatusCode.OK, model);
 }