public IList <CV_HRM_PERS> GetuserName(string userid) { IList <CV_HRM_PERS> list = new List <CV_HRM_PERS>(); CV_HRM_PERS cv_HRM_PERS = new CV_HRM_PERS() { id = userid, }; list = cv_HRM_PERSBO.GetuserEntities(cv_HRM_PERS); return(list); }
public HttpResponseMessage UpdateLoginTime(CV_HRM_PERS cv_HRM_pers) { try { CV_HRM_PERS cV_HRM_pers = new CV_HRM_PERS() { id = cv_HRM_pers.id, email3 = cv_HRM_pers.email3, }; cv_HRM_PERSBO.UpdateSome(cV_HRM_pers); return(Request.CreateResponse(HttpStatusCode.OK, "更新成功")); } catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, "更新出错:" + ex.Message)); } }