public static Struct_Employee GetEmployeeMasterDetails(string EmployeeID)
        {
            Struct_Employee empl = new Struct_Employee();
            LoginUser       currentUser;

            try
            {
                if (!GetUserSession(out currentUser))
                {
                    empl.errorCode    = 1001;
                    empl.errorMessage = "";
                    return(empl);
                }

                AdminManagerSP adminObj = new AdminManagerSP();
                if (!adminObj.GetEmployeeMasterDetails(currentUser.CompanyID, currentUser.UserId, string.IsNullOrEmpty(EmployeeID) ? 0 : Convert.ToInt32(EmployeeID), out empl))
                {
                    empl.errorCode    = adminObj.GetLastErrorCode();
                    empl.errorMessage = adminObj.GetLastError();
                }
            }
            catch (Exception ex)
            {
                empl.errorCode    = -4;
                empl.errorMessage = "Unknown Error Occured";
                Utils.Write(ex);
            }

            return(empl);
        }