public void CreateRoom(RoomCreationDTO room) { DataAccessLayer.RoomRepos.Create(mapper.Map <Room>(room)); }
public async Task CreateRoomAsync(RoomCreationDTO room) { await DataAccessLayer.RoomRepos.CreateAsync(mapper.Map <Room>(room)); }
public void CreateRoom([FromBody] RoomCreationDTO room) { BusinesLogic.RoomService.CreateRoom(room); }