public IHttpActionResult Get() { var result = serv.getList() .Select(a => map.Map <Domain.ReportDefinition, ReportDefinition>(a)); return(Json(new { data = result })); }
public ActionResult Get() { var result = serv.getList() .Select(a => map.Map <Domain.ReportDefinition, ViewModel.Api.ReportDefinition>(a)); return(new JsonResult(new { data = result })); }