public void Post(string DepName,
                         int DepAccess)
        {
            Departments1 a = new Departments1();

            a.DEPT_ACCESS = DepAccess;
            a.DEPT_NAME   = DepName;
            Dept.CreateDepartment(a);
        }
        public void Put(int id, string depName, int depAccess)
        {
            Departments1 a = new Departments1();

            a.ID          = id;
            a.DEPT_NAME   = depName;
            a.DEPT_ACCESS = depAccess;
            Dept.UpdateDepartment(a);
        }
Exemplo n.º 3
0
 public static DataAccess.Entities.Departments Map(Departments1 AX)
 {
     return(new DataAccess.Entities.Departments()
     {
         ID = AX.ID,
         DEPT_NAME = AX.DEPT_NAME,
         DEPT_ACCESS = AX.DEPT_ACCESS
     });
 }