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)));
        }
예제 #2
0
        public ActionResponse Remove(Guid id, Guid?userId = null)
        {
            var response = _frequencyRepository.Remove(id);

            return(response);
        }