public IHttpActionResult GetList(InvoiceSearch search) { AuthDetails authdet = LoginUserDetails(); var filters = new List <MySqlParameter> { datatableService1.CreateSqlParameter("@pUserId", authdet.UserId, MySqlDbType.Int32) }; var result = service1.GetList(search, filters); return(Ok(result)); }