public Guid Insert(Communaute communaute) { Context.Communautes.Add(communaute); Context.SaveChanges(); return(communaute.Id); }
public void Update(Guid id, Communaute communaute) { var updateContact = Context.Communautes.Single(x => x.Id == id); updateContact.Firstname = communaute.Firstname; updateContact.Surname = communaute.Surname; updateContact.Email = communaute.Email; updateContact.Birth = communaute.Birth; updateContact.City = communaute.City; updateContact.Bio = communaute.Bio; updateContact.Level = communaute.Level; updateContact.Password = communaute.Password; updateContact.Picture = communaute.Picture; Context.SaveChanges(); }
long ICommunautesRepository.Insert(Communaute communaute) { throw new NotImplementedException(); }
public void Update(int id, Communaute communaute) { throw new NotImplementedException(); }
public void Edit(Communaute entity) { throw new NotImplementedException(); }