public IHttpActionResult ChangeStatus(ItemChangeStatusBindingModel model) { CartItem cartItem = ItemCardMobileService.Obj.GetByCartIdAndItemId(model.CartId, model.ItemId); cartItem.ChangeStatus(model.Status); ItemCardMobileService.Obj.Update(cartItem); Cart cart = CartMobileService.Obj.GetById(model.CartId); CartIndexBindingModel bindingModel = cart.ToCartIndexBindingModel(); bindingModel.Items = ItemMobileService.Obj.GetItemsByCard(bindingModel.Cart.CartId).Select(x => x.ToCartItemBindingModel(ItemMobileService.Obj.GetById(x.ItemId))).ToList(); bindingModel.Users = CartOwnerMobileService.Obj.GetUsersByCart(bindingModel.Cart.CartId).Select(x => x.ToUserProfileBindingModel(UserService.Obj.FindById(x.UserId), ImageService.Obj.FindByUserId(x.UserId))).ToList(); return(Ok(bindingModel)); }