public HttpResponseMessage GetDimAudByParam(HttpRequestMessage request, string search) { return(GetHttpResponse(request, () => { DimAuditMtd obj = new DimAuditMtd(); List <DimAuditModel> dm = obj.GetDimAuditUsingParams(search).ToList(); return request.CreateResponse(HttpStatusCode.OK, dm); })); }
public HttpResponseMessage GetDimAud(HttpRequestMessage request) { return(GetHttpResponse(request, () => { DimAuditMtd obj = new DimAuditMtd(); List <DimAuditModel> dm = obj.GetDimAudit().ToList(); return request.CreateResponse(HttpStatusCode.OK, dm); })); }