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")); }
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")); }