vgquotes/Src/VideoGameQuotes.Web/Services/AdministrationService.cs
tmont 99cb4defbe * login/logout
* change administration password
2011-02-17 20:55:47 +00:00

22 lines
555 B
C#

using Portoa.Persistence;
using VideoGameQuotes.Api;
using VideoGameQuotes.Api.Persistence;
namespace VideoGameQuotes.Web.Services {
public interface IAdministrationService {
User SaveUser(User user);
}
public class AdministrationService : IAdministrationService {
private readonly IUserRepository userRepository;
public AdministrationService(IUserRepository userRepository) {
this.userRepository = userRepository;
}
[UnitOfWork]
public User SaveUser(User user) {
return userRepository.Save(user);
}
}
}