Skip to content

Commit 54e2854

Browse files
fix
1 parent abf4c94 commit 54e2854

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

rules/S6934/csharp/rule.adoc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,14 @@ When any of the controller actions is annotated with a `HttpMethodAttribute' wit
2424
return View();
2525
}
2626
}
27-
2827
----
2928

3029
==== Compliant solution
3130

3231
[source,csharp]
3332
----
3433
35-
public class PersonController : Controller
34+
public class PersonController: Controller
3635
{
3736
[HttpGet]
3837
public ActionResult Index() // Compliant, no route template is given to the attribute
@@ -42,7 +41,7 @@ When any of the controller actions is annotated with a `HttpMethodAttribute' wit
4241
}
4342
4443
[Route("Person")]
45-
public class PersonController : Controller
44+
public class PersonController: Controller
4645
{
4746
[HttpGet("GetPerson")]
4847
public ActionResult Index() // Compliant
@@ -52,13 +51,10 @@ When any of the controller actions is annotated with a `HttpMethodAttribute' wit
5251
}
5352
----
5453

55-
5654
== Resources
5755

5856
=== Documentation
5957

60-
=== Documentation
61-
6258
* Microsoft Learn - https://learn.microsoft.com/en-us/aspnet/core/mvc/overview[Overview of ASP.NET Core MVC]
6359
* Microsoft Learn - https://learn.microsoft.com/en-us/aspnet/core/mvc/controllers/routing[Routing to controller actions in ASP.NET Core]
6460

0 commit comments

Comments
 (0)