Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

No parameterless Constructor defined #4895

@fhnainia

Description

@fhnainia

When posting a form with a POCO object and FormCollection object to a Controller Action a SystemMethodException occurs. This was working fine in RC1 but since the upgrade to RC2 the exception started.
Here is the part of the Action:

// POST: Candidate/Create
        [Authorize]
        [HttpPost]
        [ValidateAntiForgeryToken]
        public async Task<IActionResult> Create(Candidate candidate, FormCollection obj, IList<IFormFile> files)
        {
            var auser = await _userManager.FindByNameAsync(User.Identity.Name);
            var employee = _employeeService.GetEmployee(auser.Id);
            if (employee != null && employee.PartnerId != null)
            { 
                ViewBag.PartnerId = employee.PartnerId;
            }
       ...
       }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions