public static RepoContracts.PersonalInfo From_Service_To_Repo(this ServiceContracts.Person person)
 {
     return(new RepoContracts.PersonalInfo
     {
         AccNo = person.AccNo,
         DateOfBirth = person.DateOfBirth,
         Name = person.Name,
         PersonalInfoID = person.PersonalInfoID,
         Surname = person.Surname
     });
 }
 public bool InsertPersonalInfo(ServiceContracts.Person personalInfo)
 {
     return(_personalInfoRepo.CreatePersonalInfo(personalInfo.From_Service_To_Repo()));
 }