示例#1
0
 public IHttpActionResult Put(int id, [FromBody] PersonN person)
 {
     return(Ok(person));
 }
示例#2
0
 public void EditPerson(PersonN person)
 {
     _peopleRepository.Update(person);
     _unitOfWork.Commit();
 }
示例#3
0
 public void DeletePerson(PersonN person)
 {
     _peopleRepository.Delete(person);
     _unitOfWork.Commit();
 }
示例#4
0
 public void CreatePerson(PersonN person)
 {
     _peopleRepository.Add(person);
     _unitOfWork.Commit();
 }