public ActionResult GetKSum([FromQuery] long amka) { var value = _biochemicalExaminationService.GetBiochemicalExaminationsByUser(amka); var x = new List <float>(); foreach (var item in value) { x.Add(item.K); } var bbb = new CalculationService(); var av = bbb.Average(x); return(Ok(av)); }