public ActionResult ObtenerEmpleadosID(int id) { string dwEnrollNumber = id.ToString(); string name = string.Empty; string password = string.Empty; int privilege = 0; bool enabled = false; string tmpData = string.Empty; int tmpLength = 0; int flag = 0; var Usuario = new UserInfo(); if (Connect()) { if (objZkeeper.SSR_GetUserInfo(1, dwEnrollNumber, out name, out password, out privilege, out enabled)) { Usuario = new UserInfo(); Usuario.EnrollNumber = dwEnrollNumber; Usuario.Name = name; Usuario.Privelage = privilege; Usuario.Password = password; Usuario.Enabled = enabled; Usuario.Fingers = new List <FingerUser>(); for (int i = 0; i < 10; i++) { if (objZkeeper.GetUserTmpExStr(1, dwEnrollNumber, i, out flag, out tmpData, out tmpLength)) { FingerUser item = new FingerUser { IndexFinger = i, B64Finger = tmpData, LongFinger = tmpLength }; Usuario.Fingers.Add(item); } } } } return(Json(new { data = Usuario }, JsonRequestBehavior.AllowGet)); }