Example #1
0
        public async Task <IActionResult> DeleteBuilding(int id)
        {
            var res = await BuildingService.DeleteBuilding(_context, id);

            return(new ObjectResult(res));
        }
Example #2
0
        public async Task <ActionResult> DeleteConfirmed(Guid id)
        {
            await buildingService.DeleteBuilding(id);

            return(RedirectToAction("Index"));
        }