Пример #1
0
 public Task <SubscriptionVacancy> DeleteSubscriptionVacancyByIdAsync(int subscriptionVacancyId)
 {
     return(TryCatch(async() =>
     {
         var storageSubscriptionVacancy =
             await _storageBroker.SelectSubscriptionVacancyByIdAsync(subscriptionVacancyId);
         ValidateStorageSubscriptionVacancy(storageSubscriptionVacancy, subscriptionVacancyId);
         return await _storageBroker.DeleteSubscriptionVacancyAsync(storageSubscriptionVacancy);
     }));
 }