Beispiel #1
0
 private static Func <AlertType, bool> MakeAlertType(AlertTypeViewModel model)
 {
     return(alertType =>
     {
         if (model == null)
         {
             return false;
         }
         alertType.IsSendingEmail = model.IsSendingEmail;
         alertType.Message = model.Message;
         return true;
     });
 }
Beispiel #2
0
 public async Task SaveAlert(AlertTypeViewModel model)
 {
     await _alertTypeManager.Update(model.Id, MakeAlertType(model), model.NotifyDays);
 }