public void UpdateSocialAccount(SocialAccountDTO item)
 {
     p1p.Data.SocialAccount mdlAccount = (p1p.Data.SocialAccount)P1PObjectMapper.Convert(item, typeof(p1p.Data.SocialAccount));
     p1p.Data.SocialAccount match;
     using (P1PContext ctx = new P1PContext())
     {
         match = ctx.SocialAccounts.Single(s => s.Id == mdlAccount.Id);
         mdlAccount.InsertDate = match.InsertDate;
         ctx.Entry(match).CurrentValues.SetValues(mdlAccount);
         ctx.SaveChanges();
     }
 }
Exemple #2
0
 public void UpdateSocialAccount(SocialAccountDTO item)
 {
     repo.UpdateSocialAccount(item);
 }