public async Task <IActionResult> Delete(int id) { Frequency frequency = await frequencyRepository.Get(id).ConfigureAwait(true); frequencyRepository.Remove(frequency); await unitOfWork.CompleteAsync().ConfigureAwait(true); return(Ok(mapper.Map <FrequencyForGetDTO>(frequency))); }
public ActionResponse Remove(Guid id, Guid?userId = null) { var response = _frequencyRepository.Remove(id); return(response); }