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); } } }