常用方法
常用方法
常用方法
常用方法
public async Task <ActionResult <Room> > GetRoom(int id) { var room = await repository.GetOneRoom(id); if (room == null) { return(NotFound()); } return(room); }
public async Task <ActionResult <Room> > GetRoom(int id) { var room = await repository.GetOneRoom(id); if (room == null) { return(NotFound()); } return(room); }