Example #1
0
 public void Post([FromBody] Circle circle)
 {
     circle.CircleId = _currentId;
     _currentId++;
     _db.Circles.Add(circle);
     _db.SaveChanges();
 }
 public void Post([FromBody] Userprofile userprofile)
 {
     userprofile.UserprofileId = _currentId;
     _currentId++;
     _db.Userprofiles.Add(userprofile);
     _db.SaveChanges();
 }
        public void DeleteJoin(int id)
        {
            var joinEntry = _db.CircleUserprofiles.FirstOrDefault(entry => entry.CircleUserprofileId == id);

            _db.CircleUserprofiles.Remove(joinEntry);
            _db.SaveChanges();
        }
Example #4
0
 public void Post([FromBody] Tag tag)
 {
     tag.TagId = _currentId;
     _currentId++;
     _db.Tags.Add(tag);
     _db.SaveChanges();
 }
 public void Post([FromBody] Userprofile userprofile)
 {
     _db.Userprofiles.Add(userprofile);
     _db.SaveChanges();
 }
Example #6
0
 public void Post([FromBody] Circle circle)
 {
     _db.Circles.Add(circle);
     _db.SaveChanges();
 }
 public void Post([FromBody] Tag tag)
 {
     _db.Tags.Add(tag);
     _db.SaveChanges();
 }