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

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

            _db.SaveChanges();
        }