public IHttpActionResult get() { BaseRequest <MedicineFilter> request = new BaseRequest <MedicineFilter>(); var response = service.QueryMedData(request); return(Ok(response.Data)); }
public IHttpActionResult get([FromUri] int CurrentPage, int PageSize, string keyWord) { MedicineFilter filter = new MedicineFilter { KeyWord = keyWord }; BaseRequest <MedicineFilter> request = new BaseRequest <MedicineFilter> { Data = filter, CurrentPage = CurrentPage, PageSize = PageSize }; var response = service.QueryMedData(request); return(Ok(response)); }