public ActionResult Saaty([FromBody] Alternative[] array) { array.ToList().ForEach(x => x.Mark = Math.Round(x.Mark)); var saaty = NormalizationHelper.DefaultSaaty(array); return(Ok(saaty)); }
public ActionResult UnrangetSaaty([FromBody] Alternative[] array) { for (int i = 0; i < array.Length; i++) { array[i].Mark = NormalizationHelper.MarkToSaatyRange(array[i].Mark); } var saaty = NormalizationHelper.DefaultSaaty(array); return(Ok(saaty)); }