Exemplo n.º 1
0
        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"));
 }
Exemplo n.º 5
0
 public void AddHr(HrMember member)
 {
     _db.HrMembers.Add(member);
 }