ReSharper gets confused by the MVC ActionName attribute

I've got the following methods on my controller:

        [ActionName("Edit"), HttpGet]
        public void EditGetAsync(int id)
        {
           ...
        }

        public ActionResult EditGetCompleted(ProviderFormViewModel viewModel)
        {
            ...
            return View(viewModel);
        }

This works just fine, but ReSharper complains on the View method:
Cannot resolve view 'EditGet'

I think it is getting confused about the ActionName attribute.

1 comment

As workaround - mark completed method also by ActionName attribute.

0

Please sign in to leave a comment.