Use file scoped namepace

This commit is contained in:
2022-12-22 15:29:53 +01:00
parent 27bf5f0b24
commit 6d7e447ccc
51 changed files with 886 additions and 937 deletions

View File

@@ -1,12 +1,11 @@
namespace GerstITS.Examples.WebClients.Examples.Api
namespace GerstITS.Examples.WebClients.Examples.Api;
public class Country
{
public class Country
{
#region Properties
#region Properties
public int Id { get; set; }
public string Name { get; set; }
public int Id { get; set; }
public string Name { get; set; }
#endregion
}
#endregion
}

View File

@@ -1,18 +1,17 @@
namespace GerstITS.Examples.WebClients.Examples.Api
namespace GerstITS.Examples.WebClients.Examples.Api;
public class SearchCriteria
{
public class SearchCriteria
{
#region Properties
#region Properties
internal int Id { get; set; }
public string Name { get; set; }
internal int Id { get; set; }
public string Name { get; set; }
public int? Skip { get; set; }
public int? Take { get; set; }
public int? Skip { get; set; }
public int? Take { get; set; }
public string SortBy { get; set; }
public SortingDirections SortDirection { get; set; }
public string SortBy { get; set; }
public SortingDirections SortDirection { get; set; }
#endregion
}
#endregion
}

View File

@@ -1,24 +1,23 @@
using System;
using System.Collections.Generic;
namespace GerstITS.Examples.WebClients.Examples.Api
namespace GerstITS.Examples.WebClients.Examples.Api;
public class SearchResult<TItem>
{
public class SearchResult<TItem>
#region Properties
public int TotalCount { get; set; }
public IEnumerable<TItem> Result { get; set; }
#endregion
#region Constructors
public SearchResult()
{
#region Properties
public int TotalCount { get; set; }
public IEnumerable<TItem> Result { get; set; }
#endregion
#region Constructors
public SearchResult()
{
Result = Array.Empty<TItem>();
}
#endregion
Result = Array.Empty<TItem>();
}
#endregion
}

View File

@@ -1,8 +1,7 @@
namespace GerstITS.Examples.WebClients.Examples.Api
namespace GerstITS.Examples.WebClients.Examples.Api;
public enum SortingDirections
{
public enum SortingDirections
{
Ascending = 0,
Descending
}
Ascending = 0,
Descending
}