public Mealvite Insert(Mealvite entity) { this.ctx.Mealvites.Add(entity); this.Save(); return entity; }
public Mealvite Update(Mealvite entity) { this.ctx.Entry(entity).State = System.Data.Entity.EntityState.Modified; this.Save(); return entity; }
public IHttpActionResult Update(Mealvite entity) { try { this.repo.Update(entity); return Ok(); } catch (Exception ex) { return InternalServerError(ex); } }