Trying to add information about a selected card from an API to a table in my database, so I can print that information out. I've tried adding the information to card list but it does not accept the parameters I am trying.
            public async Task<ActionResult> AddCard()
            {
                List<Card> CardsInfo = new List<Card>();
                var getUrl = System.Web.HttpContext.Current.Request.Url.AbsoluteUri;
                var test = new Uri(getUrl);
                var id = test.Segments.Last();
                SingleResult += id;
                using (var client = new HttpClient())
                {
                    //passing service baseurl 
                    client.BaseAddress = new Uri(SingleResult);
                    client.DefaultRequestHeaders.Clear();
                    //Define request data format
                    client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
                    //Sending request to find web api REST service resource Getallcards using HTTPClient
                    HttpResponseMessage Res = await client.GetAsync(SingleResult);
                    //Checking the response is successful or not which is sent using HttpClient  
                    if (Res.IsSuccessStatusCode)
                    {
                        //Storing the response details received from web api
                        var CrdResponse = Res.Content.ReadAsStringAsync().Result;
                        //Deserializing the response recieved from web api and storing in to the card list
                        CardsInfo = JsonConvert.DeserializeObject<List<Card>>(CrdResponse);
                    }
                    //returning the card list to view
                    return View("Index");
                }
            }
So far this just displays the information from the API and formats that to the model.
My model
     public class Card
        {
            public int Id { get; set; }
            public string Name { get; set; }
            public int? Atk { get; set; }
            public int? Def { get; set; }
            public string Desc {get; set;}
            public int? Level { get; set; }
            public string Type { get; set; }
            public string Attribute { get; set; }
            [DisplayName("Image")]
            public IList<Image> Card_Images { get; set; }
            public IList<Deck> Deck { get; set; }
        }
My View
    @model IEnumerable<YGOBuilder.Models.Card>
    <table class="table">
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.Name)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Atk)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Def)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Type)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Attribute)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Level)
            </th>
            <th></th>
        </tr>
    @foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Atk)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Def)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Type)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Attribute)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Level)
            </td>
            <td>
                @Html.ActionLink("Details", "Details", new { id=item.Id })
            </td>
        </tr>
    }
</table>
 
     
     
    