コード例 #1
0
        public Jam Put([FromBody] Jam value)
        {
            Jam existingJam = jamRepo.GetById(value.JamId);

            existingJam.Name                 = value.Name;
            existingJam.Description          = value.Description;
            existingJam.MaxNumberOfAttendees = value.MaxNumberOfAttendees;
            existingJam.EventDate            = value.EventDate;

            jamRepo.Update(existingJam);
            return(jamRepo.GetById(value.JamId));
        }
コード例 #2
0
 public Profile Put([FromBody] Profile value)
 {
     profileRepo.Update(value);
     return(profileRepo.GetById(value.ProfileId));
 }
コード例 #3
0
 public ProfileJam Put([FromBody] ProfileJam inputValue)
 {
     profileJamRepo.Update(inputValue);
     return(profileJamRepo.GetAll().FirstOrDefault(x => x.JamID == inputValue.JamID && x.ProfileID == inputValue.ProfileID));
 }