Merge branch 'server' into WebClient_Dev

This commit is contained in:
Strati 2018-08-05 20:41:05 +02:00
commit 6905091ddb
13 changed files with 76 additions and 67 deletions

View File

@ -28,8 +28,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
@ -46,8 +47,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
@ -64,10 +66,11 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
}
}
}

View File

@ -25,8 +25,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
@ -43,8 +44,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
@ -61,10 +63,11 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
}
}
}

View File

@ -30,8 +30,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
@ -48,8 +49,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
@ -66,10 +68,11 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
}
}
}

View File

@ -30,8 +30,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
@ -48,8 +49,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
@ -66,10 +68,11 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
}
}
}

View File

@ -29,8 +29,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
@ -47,8 +48,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
@ -65,10 +67,11 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
}
}
}

View File

@ -25,8 +25,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
@ -43,8 +44,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
@ -61,10 +63,11 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
}
}
}

View File

@ -1,23 +0,0 @@
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations.Schema;
namespace Server.Models
{
[Table("Patients")]
[DataContract]
public class Patient : Person
{
public Patient() { }
public Patient(string firstName, string lastName, Gender gender, Salutation salutation,
string streetName, string streetNumber, City city)
{
this.FirstName = firstName;
this.LastName = lastName;
this.Gender = gender;
this.Salutation = salutation;
this.StreetName = streetName;
this.StreetNumber = streetNumber;
this.City = city;
}
}
}

View File

@ -5,7 +5,7 @@ using Server.Models;
namespace Server.DB
{
public class PatientAtFoodPlaceDB
public class PatientAtFoodPlaceDB
{
public ICollection<PatientAtFoodPlace> GetAllRelations()
{
@ -31,8 +31,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
@ -49,8 +50,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
@ -67,10 +69,11 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
}
}
}

View File

@ -31,8 +31,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
@ -49,8 +50,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
@ -67,10 +69,11 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
}
}
}

View File

@ -25,8 +25,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
@ -43,8 +44,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
@ -61,10 +63,11 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
}
}
}

View File

@ -25,8 +25,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
@ -43,8 +44,9 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
@ -61,10 +63,11 @@ namespace Server.DB
}
return true;
}
catch (Exception)
catch (Exception e)
{
System.Diagnostics.Trace.WriteLine(e.Message);
return false;
}
}
}
}
}

View File

@ -50,7 +50,7 @@ namespace Server.Helper
{
foreach (var s in SalutationList)
{
Salutations.Add(new Salutation(s));
Salutations.Add(new Salutation(s));
}
return Salutations;
}
@ -58,7 +58,7 @@ namespace Server.Helper
{
foreach (var g in GenderList)
{
Genders.Add(new Gender(g));
Genders.Add(new Gender(g));
}
return Genders;
}
@ -66,7 +66,7 @@ namespace Server.Helper
{
foreach (var c in CountryList)
{
Countries.Add(new Country(c));
Countries.Add(new Country(c));
}
return Countries;
}

View File

@ -1,5 +1,6 @@
using System;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations.Schema;
namespace Server.Models
{
@ -11,6 +12,7 @@ namespace Server.Models
[DataMember]
public int FoodPlaceID { get; set; }
[DataMember]
[Column(TypeName = "Date")]
public DateTime VistingDate { get; set; }
[DataMember]