Inheritance: TaggedEntity, IAttendee
コード例 #1
0
 public ActionResult Create(Attendee attendee)
 {
     _attendeeRepository.Insert(attendee);
     return RedirectToAction("Index");
 }
コード例 #2
0
 public HttpResponseMessage<Attendee> Post(Attendee attendee, HttpRequestMessage<Attendee> request)
 {
     _attendeeRepository.Insert(attendee);
     attendee = _attendeeRepository.Get(attendee.Id) as Attendee;
     return new HttpResponseMessage<Attendee>(attendee, HttpStatusCode.Created);
 }