public async Task AddAsync(IAddRoomViewModel model) { await _roomService.AddAsync(Mapper.Map <IAddRoomDTO>(model)); }
public async Task <IHttpActionResult> AddAsync(RoomContract room) { await roomService.AddAsync(room.ToModel()); return(Created(new Uri(Request.RequestUri, room.RoomId.ToString()), room.RoomId)); }
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)); }