//update activity in program public void UpdateActivity(PatientActivityClass activity) { var sql = "UPDATE PatientActivities set [ActivityRestponce] = @ActivityRestponce WHERE PatienActivityId = @PatienActivityId"; this.db.Query <PatientActivityClass>(sql, new { ActivityRestponce = activity.ActivityRestponce, PatienActivityId = activity.PatienActivityId }); }
//Post: Add response to program public void Put([FromBody] PatientActivityClass activity) { _programRepository.UpdateActivity(activity); }