Code clean up
This commit is contained in:
@@ -35,13 +35,13 @@ public partial class ImageViewModel : ViewModelBase
|
||||
|
||||
public Image GetImage()
|
||||
{
|
||||
MemoryStream ms = new MemoryStream();
|
||||
var ms = new MemoryStream();
|
||||
FileName?.Save(ms);
|
||||
return new Image()
|
||||
return new Image
|
||||
{
|
||||
Bytes = ms.ToArray(),
|
||||
Equipment = Equipment ?? [],
|
||||
Points = Points ?? [],
|
||||
Points = Points ?? []
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user