Exemple #1
0
 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;
 }
Exemple #3
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"));
        }
Exemple #4
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"));
        }
Exemple #5
0
        public void AddDuplicateIE(string userId, decimal value, int day, IEType ieType)
        {
            _db.DuplicateIE.Add(new DuplicateIE(userId, value, day, ieType));

            _db.SaveChanges();
        }
Exemple #6
0
        public void AddIE(string userId, decimal value, DateTime date, IEType ieType)
        {
            _db.IE.Add(new IE(userId, value, date, ieType));

            _db.SaveChanges();
        }