예제 #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));
 }
 public ProfileJam Put([FromBody] ProfileJam inputValue)
 {
     profileJamRepo.Update(inputValue);
     return(profileJamRepo.GetAll().FirstOrDefault(x => x.JamID == inputValue.JamID && x.ProfileID == inputValue.ProfileID));
 }