Example #1
0
 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));
     }
 }
Example #2
0
        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));
            }
        }
Example #3
0
        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));
            }
        }