private async Task CreateSerie()
 {
     Serie.Name  = Name;
     Serie.Image = ImgByte;
     if (!string.IsNullOrEmpty(ImgPath) || !string.IsNullOrWhiteSpace(ImgPath))
     {
         Serie.ImgExtension = Path.GetExtension(ImgPath);
     }
     if (Serie.ID == -1)
     {
         await _businessSerie.Create(Serie);
     }
     else
     {
         await _businessSerie.Update(Serie);
     }
     GoBack();
 }
Beispiel #2
0
 private async void CreateSerie()
 {
     Serie.Name  = Name;
     Serie.Image = ImgByte;
     if (!string.IsNullOrEmpty(ImgPath) || !string.IsNullOrWhiteSpace(ImgPath))
     {
         Serie.ImgExtension = Path.GetExtension(ImgPath);
     }
     if (Serie.ID == -1)
     {
         await _businessSerie.Create(Serie);
     }
     else
     {
         await _businessSerie.Update(Serie);
     }
     GalaSoft.MvvmLight.Messaging.Messenger.Default.Send(new NotificationMessage("Update"));
 }