public IActionResult DeleteOrganizer(int id) { var task = _organizerServices.GetOrganizer(id); if (task == null) { return(BadRequest()); } _organizerServices.DeleteOrganizer(id); return(Ok()); }