Esempio n. 1
0
        public IActionResult Delete(long id)
        {
            var survey = _surveysService.Find(id);

            if (survey == null)
            {
                return(NotFound());
            }

            _surveysService.Delete(id);
            return(new NoContentResult());
        }
Esempio n. 2
0
        public async Task <IActionResult> Delete(int id)
        {
            await _surveysService.Delete(id);

            return(NoContent());
        }
 public async Task <OperationResult> Delete(int id)
 {
     return(await _surveysService.Delete(id));
 }