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