public IE(string userId, decimal value, DateTime date, IEType ieType) { this.Value = value; this.Date = date; this.IEType = ieType; this.UserId = userId; }
public DuplicateIE(string userId, decimal value, int date, IEType ieType) { this.Value = value; this.Day = date; this.IEType = ieType; this.UserId = userId; }
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")); }
public void AddDuplicateIE(string userId, decimal value, int day, IEType ieType) { _db.DuplicateIE.Add(new DuplicateIE(userId, value, day, ieType)); _db.SaveChanges(); }
public void AddIE(string userId, decimal value, DateTime date, IEType ieType) { _db.IE.Add(new IE(userId, value, date, ieType)); _db.SaveChanges(); }