Exemplo n.º 1
0
        public async Task <IActionResult> DeleteAsync(int id)
        {
            if (!await _buildingService.ContainsAsync(id))
            {
                return(NotFound(id));
            }

            await _buildingService.DeleteAsync(id);

            return(NoContent());
        }
Exemplo n.º 2
0
        public async Task <ActionResult> Delete(string id)
        {
            await _buildingService.DeleteAsync(new [] { id });

            return(NoContent());
        }
Exemplo n.º 3
0
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            await bldService.DeleteAsync(id);

            return(RedirectToAction("Index"));
        }