コード例 #1
0
        public IEnumerable <VParameter> Get(VRequestParams vRequestParams)
        {
            var query = parameterRepository.Get();
            var count = query.Count();


            if (vRequestParams.Page != null && vRequestParams != null)
            {
                return(mapper.Map <IEnumerable <VParameter> >(
                           query.Skip(vRequestParams.Page.Value).Take(vRequestParams.Limit.Value).ToList()
                           ));
            }

            return(mapper.Map <IEnumerable <VParameter> >(query.ToList()));
        }
コード例 #2
0
 public ActionResult Get([FromQuery] VRequestParams vRequestParams)
 {
     return(Ok(this.ParameterBusiness.Get(vRequestParams)));
 }