public HttpResponseMessage postPurchasePerMonth(DashBoardPurchasePerMonth objDashBoardPurchasePerMonth) { try { DataTable dt = objDashBoardPurchasePerMonthBL.postPurchasePerMonthToDb(objDashBoardPurchasePerMonth); return(Request.CreateResponse(HttpStatusCode.OK, dt)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }
public HttpResponseMessage PostHighestValueByLastMonth(DashBoardPurchasePerMonth objDashBoardPurchasePerMonth) { try { DataTable dt = objFastestMovingProductsPerMonthBL.getHighestValueProductsByLastMonth(objDashBoardPurchasePerMonth); return(Request.CreateResponse(HttpStatusCode.OK, dt)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }
public HttpResponseMessage PostPurchaseAmountByMonthByVendor(DashBoardPurchasePerMonth objDashBoardPurchasePerMonth) { try { DataTable dt = objFastestMovingProductsPerMonthBL.getPurchaseAmountPerMonthByVendors(objDashBoardPurchasePerMonth); return(Request.CreateResponse(HttpStatusCode.OK, dt)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }