0

When I use c# code into an cshtml file, it doesn't follow the indentation standard of c#, as shown below it adds three indents. How could I correct these indents?

@model Vidly.ViewModels.RandomMovieViewModel
@{
    ViewBag.Title = "Random";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@Model.Movie.Name</h2>

@if (Model.Customers.Count == 0)
            {

            }
            else
            {
                
            } 
Daniel A. White
  • 187,200
  • 47
  • 362
  • 445
takihama
  • 26
  • 3

0 Answers0