public async Task <ActionResult <StockAdjustment> > PostReceivedGoods( [FromBody] List <StockAdjustmentDetail> stockAdjustmentDetails, int id) { StockAdjustment stkAdj = new StockAdjustment() { date = DateTime.Now, type = "Received Goods", EmployeeId = id }; var result = await _clkService.generateReceivedGoodsAsync(stkAdj, stockAdjustmentDetails); //SaveChangesAsync(); if (result != null) { return(CreatedAtAction( nameof(GetStkAdjId), new { id = result.Id }, result)); } else { return(NotFound("Sry failed.")); } }