Quote:
[HttpPost]
public async Task<IActionResult> Create(IFormFile file)
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create(LeaveRequestCreateVM model)
You have two actions which map to
POST: LeaveRequests/Create
; the server has no way to determine which action you want to call.
You'll need to rename or remove one of those actions.