public ActionResult GetUser(int orderId) { var lst = _userAPI.FindByName(""); var order = _api.GetStorageWarehousingItem(orderId); foreach (var item in lst.Where(item => order.Users.Any(m => m.UserId == item.UserId))) { item.IsActive = true; } return(View(lst)); }
public ActionResult FindUser(string name) { var lst = _dnUserApi.FindByName(name); return(Json(lst, JsonRequestBehavior.AllowGet)); }