public JsonResult GetMasterbyId(int id)
        {
            var rcrd = _IBOUsers.GetMasterById(id);
            var uvm = new NewUserVM()
            {
                _userId = rcrd.userId,
                _userName = rcrd.userName,
                _userEmail = rcrd.userEmail,
                _userPwd = rcrd.userPwd,
                _userPhone = rcrd.userPhone

            };
            return Json(uvm, new JsonSerializerSettings());
        }
Exemplo n.º 2
0
        public JsonResult GetMasterbyId(int id)
        {
            var countryList  = _IBOCountry.GetCountryLists();
            var provinceList = _IBOCountry.GetProvinceLists();
            var rcrd         = _IBOUsers.GetMasterById(id);

            var uvm = new NewUserVM()
            {
                userId      = rcrd.userId,
                userName    = rcrd.userName,
                userEmail   = rcrd.userEmail,
                userPwd     = rcrd.userPwd,
                userPhone   = rcrd.userPhone,
                userCountry = rcrd.countryId,
                countryName = (from name in countryList
                               where name.countryId == rcrd.countryId
                               select name.countryName
                               ).FirstOrDefault(),
                uskillIds = rcrd.skillIds,
            };

            return(Json(uvm, new JsonSerializerSettings()));
        }