Ejemplo n.º 1
0
        public async Task <JsonResult> Get_UsersDropdown(string text)
        {
            var    value = HttpContext.Session.GetString("SessionUser");
            UserVM user  = null;

            if (value != null)
            {
                user = JsonConvert.DeserializeObject <UserVM>(value);
            }
            if (user != null)
            {
                var result = await _accountBusiness.GetUsersByMailTextAsync(text);

                return(Json(result.ToList()));
            }
            else
            {
                var result = await _accountBusiness.GetUsersByMailTextAsync(text);

                return(Json(result));
            }
        }