public IActionResult ComputeLevenshteinDistance(StringsModel stringsModel) { if (stringsModel == null) { return(BadRequest("Invalid argument(s).")); } // if (string.IsNullOrEmpty(stringsModel.FirstString) || string.IsNullOrEmpty(stringsModel.SecondString)) { return(BadRequest("Invalid argument(s).")); } // int n = stringsModel.FirstString.Length; int m = stringsModel.SecondString.Length; IActionResult response = Unauthorized(); LevenshteinDistanceMatrixAndCostResult levenshteinDistanceMatrixAndCostResult = StringDistance.GetLevenshteinDistanceMatrixAndCost(stringsModel.FirstString, stringsModel.SecondString); response = Ok(levenshteinDistanceMatrixAndCostResult); return(response); }