public static void SaveDepartment(EM_Departments department) { try { GetSynegyRMSInstance().AddToEM_Departments(department); GetSynegyRMSInstance().SaveChanges(); } catch (Exception) { throw; } }
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; }