public JsonResult CalculateWeight(int input, string from, string to) { double weight = ConversionService.GetWeight(input, from, to); return(Json(Math.Round(weight, 12), JsonRequestBehavior.AllowGet)); }