Search Posts

Category: parameter-passing

Pass AngularJS parameter to ActionResult method

I have google and tried alot of diffrent solutions to this problom, non of them worked. this is as far as I got. I tried passing it with a Action link and a anchor tag. Tried catching it from the url in the actionResult. This anchor tag produce the right url HTML <a class=”link btn btn-default” ng-href=”@Url.Action(“CloseProject”, “Home”)?id={{item.ID}}”>@Resource.CloseProjectButton</a> C# public ActionResult CloseProject() { Guid id = new Guid(Request[“id”]); _fastaSamarbetenRepo.UpdatePropertyBagItemStatusToClosed(id); return RedirectToAction(“Projekt”); } what am I […]