Zbiór zmian 823 dla trunk/Wierszowki/Wierszowki.Services/AuthorService.cs
- Data:
- 2009-09-01 12:21:41 (17 years ago)
- Pliki:
-
- 1 zmodyfikowane
-
trunk/Wierszowki/Wierszowki.Services/AuthorService.cs (zmodyfikowane) (2 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/Wierszowki/Wierszowki.Services/AuthorService.cs
r752 r823 8 8 namespace Wierszowki.Services 9 9 { 10 10 11 public class AuthorService : BaseService 11 12 { … … 15 16 if (errors.Any()) 16 17 throw new RulesException(errors); 17 18 18 19 var authorToUpdate = DataContext.GetAuthorById(author.Id); 19 20 authorToUpdate.FirstName = author.FirstName; 20 21 authorToUpdate.LastName = author.LastName; 21 22 authorToUpdate.EmploymentTypeId = author.EmploymentTypeId; 22 DataContext.SubmitChanges(); 23 DataContext.SubmitChanges(); 23 24 } 24 25
