Example #1
0
        public ActionResult AddDuplicateIE(decimal value, int day, IEType ieType)
        {
            string userId = User.Identity.GetUserId();

            ViewData["result"] = "Successfully added " + ieType.ToString();

            _service.AddDuplicateIE(userId, value, day, ieType);

            return(RedirectToAction("Index", "Result"));
        }
Example #2
0
        public ActionResult AddIE(decimal value, string date, IEType ieType)
        {
            string userId = User.Identity.GetUserId();

            ViewData["result"] = "Successfully added " + ieType.ToString();

            _service.AddIE(userId, value, Convert.ToDateTime(date), ieType);

            return(RedirectToAction("Index", "Result"));
        }