public void Create(DalProfile e)
 {
     var profile = new Profile()
     {
        ProfileId=e.Id,
        FirstName=e.FirstName,
        LastName=e.LastName,
        UserId=e.UserId
     };
     context.Set<Profile>().Add(profile);
     context.SaveChanges();
 }
 public void Delete(DalProfile e)
 {
     var profile = new Profile()
     {
         ProfileId = e.Id,
         FirstName = e.FirstName,
         LastName = e.LastName,
         UserId = e.UserId
     };
     profile = context.Set<Profile>().Single(p => p.ProfileId == p.ProfileId);
     context.Set<Profile>().Remove(profile);
     context.SaveChanges();
 }