Simplify CalculatedEnd

This commit is contained in:
Sijmen 2021-07-04 14:37:57 +02:00
parent 4f02fb27da
commit 36f9fb6654
Signed by: vijfhoek
GPG Key ID: DAF7821E067D9C48
1 changed files with 1 additions and 9 deletions

View File

@ -18,15 +18,7 @@ namespace BlazorApp.Data
public string Description { get; set; }
public TimeSpan? Duration { get; set; }
public DateTime? CalculatedEnd
{
get
{
if (Duration != null)
return DtStart + Duration;
return DtEnd;
}
}
public DateTime? CalculatedEnd => DtEnd ?? DtStart + Duration;
}
public class Calendar