Ejemplo n.º 1
0
        public virtual ActionResult StatusMessages(StatusMessage model)
        {

            var sc = new StatusMessagesService();
            sc.Save(model);

            return View();
        }
Ejemplo n.º 2
0
        //public ActionResult BetaSignUp() {
        //    IEnumerable<HomepageActivityModel> activity = ES.GetHomepageActivity();
        //    BetaSignUpViewModel bmodel = new BetaSignUpViewModel(
        //        activity.Take(6).ToList(),
        //        0,
        //        activity.Count()
        //    );
        //    foreach (HomepageActivityModel item in bmodel.Activity) {
        //        if (item.ActivityType == ActivityType.PHOTOS_VIDEOS) {
        //            item.Image = IS.FindByID(Convert.ToInt32(item.ActivityContent));
        //        }
        //    }

        //    bmodel.EmailAddress = "*****@*****.**";

        //    return View(bmodel);
        //}

        //[HttpPost]
        //public ActionResult BetaSignUp(BetaSignUpViewModel model) {

        //    if (!ModelState.IsValid) {
        //        return View(model);
        //    }

        //    IEnumerable<HomepageActivityModel> activity = ES.GetHomepageActivity();
        //    model.Activity = activity.Take(6).ToList();
        //    model.CurrentPageIndex = 0;

        //    foreach (HomepageActivityModel item in model.Activity) {
        //        if (item.ActivityType == ActivityType.PHOTOS_VIDEOS) {
        //            item.Image = IS.FindByID(Convert.ToInt32(item.ActivityContent));
        //        }
        //    }

        //    //save the email address
        //    model.regDateTime = DateTime.UtcNow;
        //    model.Submitted = true;
        //    model.ipAddress = Request.ServerVariables["REMOTE_ADDR"];

        //    BetaSignup bsu = new BetaSignup();

        //    bsu = Mapper.Map<BetaSignUpViewModel, BetaSignup>(model);

        //    BetaService betaS = new BetaService();
        //    betaS.Save(bsu);

        //    return View(model);
        //}

        public virtual ActionResult StatusMessages()
        {
            var model = new StatusMessage {MSGDateTime = DateTime.UtcNow};
            return View(model);
        }