public BagtotheFutureSnsUser Post([FromBody] BagtotheFutureSnsUserModel model) { if (common.Now >= new DateTime(2017, 7, 20)) { throw new BagtotheFutureServiceException("400", "이벤트가 종료되었습니다.", model); } var entry = mapperConfig.CreateMapper().Map <BagtotheFutureSnsUser>(model); entry.IpAddress = common.IpAddress; entry.Channel = HttpContext.Current.Request.Browser.IsMobileDevice ? "mobile" : "web"; entry.CreateDate = common.Now; var result = service.CreateBagtotheFutureSnsUser(entry); return(result); }