public ActionResult SignUp(HumanTb obj) { obj.Email = obj.Email.Trim(); HumanDbContext db = new HumanDbContext(); db.HumanTbs.Add(obj); db.SaveChanges(); return(RedirectToAction("Login")); }
public ActionResult Login(string e, string p) { HumanDbContext db = new HumanDbContext(); //Get List of Recorded from table using LINQ Query Format. var human = from h in db.HumanTbs.ToList() where Equals(h.Email, e) && Equals(h.Password, p) select h; //Convert "human" to List. List <HumanTb> tb = (List <HumanTb>)human.ToList(); if (tb.Count == 0) { return(View()); } //Get First Data HumanTb fd = tb.ElementAt(0); //Save To A Variable TempData["Data"] = fd; return(RedirectToAction("HomePage")); }
public HumanInfoLeaveStore(HumanDbContext context) { Context = context; HumanInfoLeaves = Context.HumanInfoLeaves; }
public HumanInfoStore(HumanDbContext context) { Context = context; HumanInfos = Context.HumanInfos; }
public HumanInfoBlackStore(HumanDbContext context) { Context = context; HumanInfoBlacks = Context.HumanInfoBlacks; }
public HumanPositionStore(HumanDbContext context) { Context = context; HumanPositions = Context.HumanPositions; }
public HumanInfoAdjustmentStore(HumanDbContext context) { Context = context; HumanInfoAdjustments = Context.HumanInfoAdjustments; }
public PositionSalaryStore(HumanDbContext context) { Context = context; PositionSalaries = Context.PositionSalaries; }
public HumanInfoPartPositionStore(HumanDbContext context) { Context = context; HumanInfoPartPostions = Context.HumanInfoPartPositions; }
public HumanManageStore(HumanDbContext hudb) { Context = hudb; }
public Admin(HumanDbContext contextHuman, PayrollDbContext contextPayroll) { _contextHuman = contextHuman; _contextPayroll = contextPayroll; }
public HumanInfoChangeStore(HumanDbContext context) { Context = context; HumanInfoChanges = Context.HumanInfoChanges; }
public HumanInfoRegularStore(HumanDbContext context) { Context = context; HumanInfoRegulars = Context.HumanInfoRegulars; }
public ManageHuman(HumanDbContext context) { _context = context; }