コード例 #1
0
        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);
        }