using System.Web.Http; public class MyController : ApiController { private readonly ActionService _actionService; public MyController() { _actionService = new ActionService(); } [HttpPost] public async TaskIn this example, we have a controller that handles HTTP POST requests and calls the ActionService to perform some action using an input model. The code creates a new instance of the ActionService class and calls its DoSomethingAsync method to perform the action. The ActionService class is typically included in the Microsoft.AspNet.WebApi.Core NuGet package library, which is used to create Web APIs in ASP.NET.PerformAction([FromBody] MyModel model) { // Perform some action with the model var result = await _actionService.DoSomethingAsync(model); return Ok(result); } }