コード例 #1
0
 public static void SaveDepartment(EM_Departments department)
 {
     try
     {
         GetSynegyRMSInstance().AddToEM_Departments(department);
        GetSynegyRMSInstance().SaveChanges();
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #2
0
 private SelectList GetDepartmentListwithUserSelectedValue(EM_Departments department)
 {
     List<EM_Departments> allDeptTypes = SynergyService.GetDepartmentList();
     //int selectdepid = 1;//SynergyService.GetDepartmentByUsername(username);
     SelectList list = new SelectList(allDeptTypes, "DepartmentId", "DepartmentName", department.DepartmentId);
     return list;
 }