public HttpResponseMessage getLatestTransactionHistoryBySeller(int id) { try { DataTable dt = objPaymentBL.GetLastestTransactionBySeller(id); return(Request.CreateResponse(HttpStatusCode.OK, dt)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }