public JsonResult GenerateUserInfo() { if (!User.Identity.IsAuthenticated) { RedirectToRoute("login"); } string[] values = User.Identity.Name.Split('|'); ML.OFW.Contracts.Models.RefreshAccount refrsh = new OFW.Contracts.Models.RefreshAccount(); refrsh.accountno = values[1].Trim();; refrsh.IsRefresh = 1; refrsh.UserName = values[0].Trim(); ML.OFW.Services.OFW srv = new OFW.Services.OFW(); var resp = srv.RefreshAccount(refrsh); bool hasPhoto = string.IsNullOrEmpty(resp.Photo) ? false : true; if (resp.respCode != "0") { return(Json(new { status = true, hasImage = hasPhoto, response = resp }, JsonRequestBehavior.AllowGet)); } return(Json(new{ status = false, msg = resp.respMsg }, JsonRequestBehavior.AllowGet)); }
public String GetAccountBal(string AccountNo, string Ursname) { ML.OFW.Contracts.Models.RefreshAccount refrsh = new OFW.Contracts.Models.RefreshAccount(); refrsh.accountno = AccountNo; refrsh.IsRefresh = 1; ML.OFW.Services.OFW srv = new OFW.Services.OFW(); var resp = srv.RefreshAccount(refrsh); return(resp.balance); }