AspNet4/Mvc/DataFiltering/Controllers/OrderController.cs
/// <summary>
/// Gets the model by its ID
/// </summary>
/// <param name="modelId">The ID of the model that will be loaded</param>
/// <returns><see cref="ActionResult"/> An ActionResult object with JSON representation of the model</returns>
Gets the model by its ID
Gets the model by its ID
[HttpGet]
        [Route("models/{modelId}")]
        public async Task<ActionResult> GetModelAsync(string modelId)
        {
            var model = await _eqManager.GetModelAsync(modelId);
            return this.EqOk(new { model }); 
        }
[ HttpGet ] [ Route ( " " ) ] public async Task < ActionResult > GetModelAsync ( string modelId ) { var model = await _eqManager . GetModelAsync ( modelId ) ; return this . EqOk ( new { model } ) ; }
Gets the model by its ID
Gets the model by its ID
An ActionResult object with JSON representation of the model
An ActionResult object with JSON representation of the model
modelId
string
The ID of the model that will be loaded
The ID of the model that will be loaded