public OneYearAnniversaryEntry Post(OneYearAnniversaryModel model) { if (common.Now >= new DateTime(2017, 4, 24)) { throw new OneYearAnniversaryServiceException("이벤트가 종료되었습니다.", model); } var entry = mapperConfig.CreateMapper().Map <OneYearAnniversaryEntry>(model.OneYearAnniversaryCreateModel); entry.IpAddress = common.IpAddress; entry.CreateDate = common.Now; entry.Channel = HttpContext.Current.Request.Browser.IsMobileDevice ? "mobile" : "web"; return(service.CreateOneYearAnniversaryEntry(entry)); }