Ejemplo n.º 1
0
        public IActionResult CreateDepartmentAttendant(int depId, string userId)
        {
            if (ModelState.IsValid)
            {
                var entity = new DepartmentAttendant()
                {
                    DepartmentId = depId,
                    UserId       = userId
                };

                _departmentAttendantService.Create(entity);

                return(RedirectToAction("ListDepartmentAttendant"));
            }

            return(View());
        }
Ejemplo n.º 2
0
 public void Update(DepartmentAttendant entity)
 {
     _DepartmentAttendantDal.Update(entity);
 }
Ejemplo n.º 3
0
 public void Delete(DepartmentAttendant entity)
 {
     _DepartmentAttendantDal.Delete(entity);
 }
Ejemplo n.º 4
0
 public void Create(DepartmentAttendant entity)
 {
     _DepartmentAttendantDal.Create(entity);
 }