/// <summary> /// Check whether there exist any Users to the entered EmployeeID in the u_User table /// Modified By Nilmini 2013/10/29 /// </summary> /// <param name="objUser">object of a u_User class in the smartOffice_Models which carried Employee ID</param> /// <returns>if user exist in the u_User table, returns user details, else null</returns> public u_User GetUserDetailsforEmployeeIDToEdit(u_User objUser) { try { u_User_DL objUserDL = new u_User_DL(); if (objUserDL.isEmpExist(objUser) == true) { if (objUserDL.isEmpUserExist(objUser) == true) { objUser = objUserDL.GetExistingUserToEmpID(objUser); objUser.strPassword = CreateCheckPassword(false, objUser.strPassword); return(objUser); } else { return(null); } } else { return(null); } } catch (Exception ex) { throw ex; } }
/// <summary> /// Check whether there exist any employees to the entered EmployeeID /// Modified By Nilmini 2013/12/18 /// </summary> /// <param name="objUser">object of a u_User class in the smartOffice_Models which carried Employee ID</param> /// <returns>if employee exist in the employee table, returns true, else false</returns> public bool isEmpExist(u_User objUser) { try { u_User_DL objUserDL = new u_User_DL(); return(objUserDL.isEmpExist(objUser)); } catch (Exception ex) { throw ex; } }