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())); }
public ActionResult Get([FromQuery] VRequestParams vRequestParams) { return(Ok(this.ParameterBusiness.Get(vRequestParams))); }