コード例 #1
0
 private DeleteClinicalInterestRequest CreateRequest()
 {
     var request = new DeleteClinicalInterestRequest
     {
         Id = _existingClinicalInterestId
     };
     return request;
 }
コード例 #2
0
        private void DeleteRecords()
        {
            try
            {
                foreach (var id in _viewModel.SelectedIds)
                {
                    var request = new DeleteClinicalInterestRequest()
                    {
                        Id = int.Parse(id.ToString(), CultureInfo.InvariantCulture)
                    };

                    ProcessRequest<DeleteClinicalInterestResponse>(request);
                }
                _viewModel.SelectedIds = new List<object>();
                _viewModel.SetSuccessMessage("Clinical Interests Successfully Deleted");
            }
            catch (Exception ex)
            {
                _viewModel.SetErrorMessage(ex.Message);
            }
        }