public IHttpActionResult PutPacman_carer_patient_db(int id, Pacman_carer_patient_db pacman_carer_patient_db)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != pacman_carer_patient_db.ID)
            {
                return BadRequest();
            }

            db.Entry(pacman_carer_patient_db).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!Pacman_carer_patient_dbExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostPacman_carer_patient_db(Pacman_carer_patient_db pacman_carer_patient_db)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.Pacman_carer_patient_db.Add(pacman_carer_patient_db);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = pacman_carer_patient_db.ID }, pacman_carer_patient_db);
        }
 public void MarkAsModifiedPacman_carer_patient_db(Pacman_carer_patient_db item)
 {
 }
Пример #4
0
 public void MarkAsModifiedPacman_carer_patient_db(Pacman_carer_patient_db item)
 {
     Entry(item).State = EntityState.Modified;
 }
Пример #5
0
 public void MarkAsModifiedPacman_carer_patient_db(Pacman_carer_patient_db item)
 {
     Entry(item).State = EntityState.Modified;
 }