Update the service
This commit is contained in:
parent
92f472caa8
commit
203031d5a1
|
@ -4,6 +4,7 @@ using System.Linq;
|
|||
using System.Runtime.Serialization;
|
||||
using System.ServiceModel;
|
||||
using System.Text;
|
||||
using Server.Models;
|
||||
|
||||
namespace Server
|
||||
{
|
||||
|
@ -12,6 +13,22 @@ namespace Server
|
|||
public interface IService
|
||||
{
|
||||
[OperationContract]
|
||||
void DoWork();
|
||||
void WritePatient(Person person);
|
||||
[OperationContract]
|
||||
void WriteExam(Exam exam);
|
||||
[OperationContract]
|
||||
void WriteResult(Result result);
|
||||
[OperationContract]
|
||||
void WriteCity(City city);
|
||||
[OperationContract]
|
||||
void WriteCountry(Country country);
|
||||
[OperationContract]
|
||||
List<Gender> GetGenders();
|
||||
[OperationContract]
|
||||
List<Salutation> GetSalutations();
|
||||
[OperationContract]
|
||||
List<Strain> GetStrains();
|
||||
[OperationContract]
|
||||
List<Doctor> GetDoctors();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,6 +95,16 @@
|
|||
<DependentUpon>home.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="IService.cs" />
|
||||
<Compile Include="Models\City.cs" />
|
||||
<Compile Include="Models\Country.cs" />
|
||||
<Compile Include="Models\Doctor.cs" />
|
||||
<Compile Include="Models\Exam.cs" />
|
||||
<Compile Include="Models\Gender.cs" />
|
||||
<Compile Include="Models\Person.cs" />
|
||||
<Compile Include="Models\Result.cs" />
|
||||
<Compile Include="Models\Salutation.cs" />
|
||||
<Compile Include="Models\Status.cs" />
|
||||
<Compile Include="Models\Strain.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Service.svc.cs">
|
||||
<DependentUpon>Service.svc</DependentUpon>
|
||||
|
@ -102,7 +112,6 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="App_Data\" />
|
||||
<Folder Include="Models\" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
|
|
|
@ -4,6 +4,7 @@ using System.Linq;
|
|||
using System.Runtime.Serialization;
|
||||
using System.ServiceModel;
|
||||
using System.Text;
|
||||
using Server.Models;
|
||||
|
||||
namespace Server
|
||||
{
|
||||
|
@ -11,8 +12,49 @@ namespace Server
|
|||
// NOTE: In order to launch WCF Test Client for testing this service, please select Service.svc or Service.svc.cs at the Solution Explorer and start debugging.
|
||||
public class Service : IService
|
||||
{
|
||||
public void DoWork()
|
||||
public List<Doctor> GetDoctors()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public List<Gender> GetGenders()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public List<Salutation> GetSalutations()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public List<Strain> GetStrains()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void WriteCity(City city)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void WriteCountry(Country country)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void WriteExam(Exam exam)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void WritePatient(Person person)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void WriteResult(Result result)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue