public ActionResult <ReportDefinitionVM> Get([FromRoute] string id) { if (!serv.Exists(id)) { return(NotFound()); } var result = map.Map <ReportDefinitionVM>(serv.Get(id)); return(Ok(new { data = result })); }
public IHttpActionResult Get(string id) { var result = serv.Get(id); // TODO Use Automapper to return column deserialized return(Json(new { data = result })); }
public ActionResult Get(string id) { var result = serv.Get(id); return(new JsonResult(new { data = result })); }