コード例 #1
0
 public bool Edit(Author author)
 {
     if (validation.Validate(author).Count > 0)
     {
         foreach (var res in validation.Validate(author))
         {
             if (res.IsValidate)
             {
                 logger.Error(res.ValidationMessage.ToString());
             }
         }
     }
     return(authors.Edit(author));
 }