Example #1
0
        // GET api/ActionQSE
        //public IQueryable<ActionQSE> GetActions()
        //{
        //    return db.ActionQSEs;
        //}


        public HttpResponseMessage Get()
        {
            _actionQSERepository = new ActionQSERepository();

            Dictionary <string, string> DataTableParameters = new Dictionary <string, string>();

            DataTableParameters = Request.GetQueryNameValuePairs().ToDictionary(kv => kv.Key, kv => kv.Value, StringComparer.OrdinalIgnoreCase);

            DataTableViewModel <ActionQSEDTO> DataTableViewModel = _actionQSERepository.GetFromParams(DataTableParameters);

            //DataTableViewModel.aaData = nonConformites;
            //DataTableViewModel.iTotalRecords = 1;
            //DataTableViewModel.iTotalDisplayRecords = 1;
            //DataTableViewModel.sEcho = int.Parse(dataTableParameters["sEcho"]);

            return(Request.CreateResponse(HttpStatusCode.OK, DataTableViewModel));
        }
Example #2
0
 public RechercheActionController()
 {
     _actionQSERepository = new ActionQSERepository();
 }