public Aspirecn.Entities.UserCenter.UserLogonResp RequestLogon(Aspirecn.Entities.UserCenter.UserLogonReq request) { UserCenterBll bll = new UserCenterBll(); return bll.RequestLogon(request); }
private static Aspirecn.Entities.Cssp.ServiceAccessReqEntity AddRequestRecords( ServiceAccesssReqBody body, ServiceAccesssReqHead head, Aspirecn.Entities.Cssp.CsspEntitiesContainer entities) { Aspirecn.Entities.Cssp.ServiceAccessReqEntity requestEntity = new ServiceAccessReqEntity() { Head = new Head() { Send_Address = new Address_Info_Schema() { DeviceID = head.Send_Address[0].DeviceID, DeviceType = head.Send_Address[0].DeviceType }, Dest_Address = new Address_Info_Schema() { DeviceID = head.Dest_Address[0].DeviceID, DeviceType = head.Dest_Address[0].DeviceType }, MsgType = head.MsgType, Version = head.Version }, Body = new Body() { Request = new RequestType() { ChannelID = body.Request[0].ChannelID, ContentID = body.Request[0].ContentID, FeeMSISDN = body.Request[0].FeeMSISDN, MSISDN = body.Request[0].MSISDN, SPID = body.Request[0].SPID, SPServiceID = body.Request[0].SPServiceID, Params = new ParamsType() { Pager = new PagerType() { BeginIndex = body.Request[0].Params[0].Pager[0].BeginIndex, EndIndex = body.Request[0].Params[0].Pager[0].EndIndex } } } }, }; //entities.ServiceAccessReqEntities.Add(requestEntity); List<Aspirecn.Entities.Cssp.ParamNameEntity> paramNameEntities = new List<Aspirecn.Entities.Cssp.ParamNameEntity>(); foreach (var one in body.Request) { foreach (var two in one.Params) { foreach (var three in two.Property) { var ent = new ParamNameEntity();//entities.ParamNameEntities.Create(); // ent.ServiceAccessReqEntity = requestEntity; ent.ParamName = three.ParamName; ent.CompareOp = three.CompareOp; ent.ParamValue = three.ParamValue; // requestEntity.Properties.Add(ent); // paramNameEntities.Add(ent); } break; } break; } //foreach (var p in paramNameEntities) //{ // entities.ParamNameEntities.Add(p); //} // entities.SaveChanges(); return requestEntity; }