Example #1
0
        public IActionResult Delete(int id)
        {
            var quota = _quotasRepository.GetQuotaById(id);

            if (quota != null)
            {
                _quotasRepository.Remove(quota);
                return(Ok(quota));
            }
            return(BadRequest(ModelState));
        }