public async Task <IActionResult> DeleteRoom(int?id) { if (id == null) { return(StatusCode(404, "Room not Found")); } var room = await _specialityRepository.GetRoomByIdAsync(id.Value); if (room == null) { return(StatusCode(404, "Room not Found")); } var specialityId = await _specialityRepository.DeleteRoomAsync(room); return(StatusCode(200, "Room Successfully Deleted")); }