Пример #1
0
        public async Task <IActionResult> Delete(long id)
        {
            var provider = await expenseRepo.WithId(id);

            await expenseRepo.Delete(provider);

            return(new OkObjectResult(provider));
        }
Пример #2
0
        public IActionResult Delete([FromBody] int id)
        {
            if (id <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(id));
            }

            _repository.Delete(id);
            return(Ok());
        }
Пример #3
0
 public void Delete(String Type)
 {
     ExpenseTypeRepository.Delete(Type);
 }