diff --git a/WF-WebAdmin/WF-WebAdmin/Service/IQuoteService.cs b/WF-WebAdmin/WF-WebAdmin/Service/IQuoteService.cs new file mode 100644 index 0000000..e4a165e --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Service/IQuoteService.cs @@ -0,0 +1,27 @@ +using WF_WebAdmin.Model; + +namespace WF_WebAdmin.Service +{ + public interface IQuoteService + { + public void addQuote(Quote quote); + + public void removeQuote(Quote quote); + + public void validQuote(Quote quote); + + public void updateQuote(Quote quote); + + public List getAllQuote(); + + public List getSomeQuote(int nb, int page); + + public Quote getOnequote(int id); + + public List reserchQuote(string reserch, List argument); + + public List getAllQuoteInvalid(); + + public List getSomeQuoteInvalid(int nb, int page); + } +} diff --git a/WF-WebAdmin/WF-WebAdmin/Service/IUserService.cs b/WF-WebAdmin/WF-WebAdmin/Service/IUserService.cs new file mode 100644 index 0000000..1742e10 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Service/IUserService.cs @@ -0,0 +1,21 @@ +using WF_WebAdmin.Model; + +namespace WF_WebAdmin.Service +{ + public interface IUserService + { + public void removeUser(User user); + + public void updateRole(User user); + + public void downgradeRole(User user); + + public List getAllUser(); + + public List getSomeUser(int nb, int page); + + public User getOneUser(int id); + + public List reserchUsers(string reserch, List args); + } +} diff --git a/WF-WebAdmin/WF-WebAdmin/Service/QuoteServiceStub.cs b/WF-WebAdmin/WF-WebAdmin/Service/QuoteServiceStub.cs new file mode 100644 index 0000000..74cf398 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Service/QuoteServiceStub.cs @@ -0,0 +1,65 @@ +using Microsoft.AspNetCore.Components; +using WF_WebAdmin.Model; +using static System.Net.WebRequestMethods; + +namespace WF_WebAdmin.Service +{ + public class QuoteServiceStub : IQuoteService + { + [Inject] + public HttpClient Http { get; set; } + + [Inject] + public NavigationManager NavigationManager { get; set; } + + public void addQuote(Quote quote) + { + + } + + public List getAllQuote() + { + throw new NotImplementedException(); + } + + public List getAllQuoteInvalid() + { + throw new NotImplementedException(); + } + + public Quote getOnequote(int id) + { + throw new NotImplementedException(); + } + + public List getSomeQuote(int nb, int page) + { + throw new NotImplementedException(); + } + + public List getSomeQuoteInvalid(int nb, int page) + { + throw new NotImplementedException(); + } + + public void removeQuote(Quote quote) + { + throw new NotImplementedException(); + } + + public List reserchQuote(string reserch, List argument) + { + throw new NotImplementedException(); + } + + public void updateQuote(Quote quote) + { + throw new NotImplementedException(); + } + + public void validQuote(Quote quote) + { + throw new NotImplementedException(); + } + } +}