예제 #1
0
 public IActionResult Post([FromBody] BloodPressureStatistics value)
 {
     if (_user == null)
     {
         _user = _userRepository.Get(User.Identity.GetUserId());
     }
     value.ApplicationUser = _user;
     _bloodPressureRepository.Add(value);
     return(Ok(value));
 }
예제 #2
0
 public void Add(BloodPressureStatistics statistics)
 {
     Context.BloodPreasures.Add(statistics);
     Context.SaveChanges();
 }
예제 #3
0
 public void Put(int id, [FromBody] BloodPressureStatistics value)
 {
 }