/// @TODO : See exp public void Edit(Ayle p) { utOfWork.AyleRepository.Update(p); utOfWork.Commit(); }
// POST: odata/Ayles public IHttpActionResult Post(Ayle ayle) { if (!ModelState.IsValid) { return BadRequest(ModelState); } db.Ayle.Add(ayle); db.SaveChanges(); return Created(ayle); }
public void AddNew(Ayle a) { utOfWork.AyleRepository.Add(a); utOfWork.Commit(); }