public JsonResult LoadData(GridPager pager, string merchantName, string userName, string cellPhone, int?countryId, int?status) { var countryName = FoundationDB.CountryDb.GetById(countryId)?.Name; var statusList = GetMerchantStatusList(); var verifyStatusList = GetMerchantVerfiyStatusList(); var list = new StoreManageBLL().GetFiiiPosMerchantPager(merchantName, userName, cellPhone, countryId, status, ref pager); var obj = list.ToGridJson(pager, r => new { id = r.Id, cell = new { Id = r.Id.ToString(), Username = r.Username, Cellphone = r.Cellphone, MerchantName = r.MerchantName, CountryName = countryName, Status = statusList[(int)r.Status], VerifyStatus = verifyStatusList[r.VerifyStatus] } }); return(Json(obj)); }
public JsonResult SaveVerify(MerchantInformations info) { var sr = new StoreManageBLL().SaveProfileVerify(info, UserId, UserName); return(Json(sr.toJson())); }
public ActionResult SaveSet(MerchantInformations oModel) { StoreManageBLL upb = new StoreManageBLL(); return(Json(upb.SetUser(oModel, UserId, UserName).toJson())); }