I have a put method in controller A where i pass in json object and do some checks in dynamo db, based on my output
[HttpPut]
public async Task<IActionResult> ProcessEmployee([FromBody]EmployeeModel em)
i need to do a post in controller B
[HttpPost]
public async Task<IActionResult> CreateEmployee([FromBody]EmployeeModel em)
or
do a put in controller B
[HttpPut]
public async Task<IActionResult> UpdateEmployee([FromBody]EmployeeModel em)
how do i redirect to the actions in controller B and also pass in my json object which i pass to the put in controller A.
Thanks for reading.