Exemplo n.º 1
0
        public IActionResult SaveReceivedQty([FromBody] StationeryRetrievalViewModel SRviewModel)
        {
            bool status = srfservice.saveReceivedProds3(SRviewModel.retrievalProducts, SRviewModel.stationeryRetrieval.Id, SRviewModel.warehousepacker, SRviewModel.storeclerk, SRviewModel.srrfList);

            if (status == true)
            {
                return(Ok(SRviewModel));
            }
            else
            {
                return(null);
            }
        }
        public IActionResult SaveReceivedQty([FromBody] StationeryRetrievalViewModel SRviewModel)
        {
            bool status = srformservice.saveReceivedProds3(SRviewModel.retrievalProducts, SRviewModel.stationeryRetrieval.Id, SRviewModel.warehousepacker, SRviewModel.storeclerk, SRviewModel.srrfList);

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