* Translated Views
* Added UserName entity, dto and mapping * Changed some Dtos to use BaseClass
This commit is contained in:
@@ -2,5 +2,16 @@
|
||||
{
|
||||
public class DtoBase
|
||||
{
|
||||
protected static string TranslateStatus(string status)
|
||||
{
|
||||
return status switch
|
||||
{
|
||||
"O" => "Zamówione",
|
||||
"S" => "Zatrzymane",
|
||||
"P" => "Planowane",
|
||||
"C" => "Zakończone",
|
||||
_ => status
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user