예제 #1
0
 public async Task AddAsync(IAddRoomViewModel model)
 {
     await _roomService.AddAsync(Mapper.Map <IAddRoomDTO>(model));
 }
예제 #2
0
        public async Task <IHttpActionResult> AddAsync(RoomContract room)
        {
            await roomService.AddAsync(room.ToModel());

            return(Created(new Uri(Request.RequestUri, room.RoomId.ToString()), room.RoomId));
        }
예제 #3
0
 public async Task <object> AddRoom([FromBody] RoomModel roomModel)
 {
     return(await _roomService.AddAsync(roomModel));
 }
        public async Task <ObjectResult> AddAsync([FromBody] RoomRequestModel model)
        {
            var result = await _roomService.AddAsync(model);

            return(BaseResult(result));
        }