public IActionResult DeleteSportsBuildingAdministrator(int SportsBuildingAdministratorID)
        {
            SportsBuildingAdministrator deletedSportsBuildingAdministrator = repository.DeleteSportsBuildingAdministrator(SportsBuildingAdministratorID);

            if (deletedSportsBuildingAdministrator != null)
            {
                //TempData["message"] = $"{deletedSportsBuildingAdministrator.FirstName} was deleted";
            }
            return(RedirectToAction("SportsBuildingAdministrator"));
        }
Example #2
0
 public IActionResult Delete(int id)
 {
     repository.DeleteSportsBuildingAdministrator(id);
     return(Ok(repository.SportsBuildingAdministratorOnly));
 }