Example #1
0
 /// @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);
        }
Example #3
0
 public void AddNew(Ayle a)
 {
     utOfWork.AyleRepository.Add(a);
     utOfWork.Commit();
 }