public async Task <IActionResult> DeleteBuilding(int id) { var res = await BuildingService.DeleteBuilding(_context, id); return(new ObjectResult(res)); }
public async Task <ActionResult> DeleteConfirmed(Guid id) { await buildingService.DeleteBuilding(id); return(RedirectToAction("Index")); }