コード例 #1
0
        public IActionResult SaveAssignedProductsInPendingSR(int srId, [FromBody] StationeryRetrievalViewModel srVModel)
        {
            bool status = srfservice.SetProductsAssignedInSR(srId, srVModel.sRRFPList, srVModel.retrievalProducts, srVModel.srrfList);

            if (status == true)
            {
                return(Ok(srVModel));
            }
            else
            {
                return(null);
            }
        }
        public IActionResult SaveAssignedProductsInPendingSR([FromRoute] int id, [FromBody] StationeryRetrievalViewModel srVModel)
        {
            bool status = srformservice.SetProductsAssignedInSR(id, srVModel.sRRFPList, srVModel.retrievalProducts, srVModel.srrfList);

            if (status == true)
            {
                return(new JsonResult(new { success = "Success" }));
            }
            else
            {
                return(new JsonResult(new { success = "Failure" }));
            }
        }