public void HrMemberConstructorWorks() { string email = "*****@*****.**"; string name = "Andrew"; string surname = "Golota"; var hrMember = new HrMember(name, surname, email); Assert.Equal(hrMember.Email, email); Assert.Equal(hrMember.Name, name); Assert.Equal(hrMember.Surname, surname); }
public IActionResult Create(HrMember member) { _staff.AddHr(member); _staff.Commit(); return(RedirectToAction("Index")); }
public IActionResult Create() { var member = new HrMember(); return(View(member)); }
public IActionResult Delete(HrMember member) { _staff.DeleteHr(member.Id); _staff.Commit(); return(RedirectToAction("Index")); }
public void AddHr(HrMember member) { _db.HrMembers.Add(member); }