public ActionResult Contact1(PrimalParam param, string mailname, string telegramname) { bool[] num = new bool[10]; num[0] = param.num0; num[1] = param.num1; num[2] = param.num2; num[3] = param.num3; if (param.num4) { for (int i = 4; i < 10; i++) { num[i] = true; } } Parameters parameters = new Parameters(num, Convert.ToInt64(param.price1.Replace(" ", "").Replace(" ", "")), Convert.ToInt64(param.price2.Replace(" ", "").Replace(" ", "")), Convert.ToInt32(param.flat1), Convert.ToInt32(param.flat2), Convert.ToInt32(param.max_flat1), Convert.ToInt32(param.max_flat2), Convert.ToDouble(param.metro_distance1.Replace(" ", "").Replace(" ", "")), Convert.ToDouble(param.metro_distance2.Replace(" ", "").Replace(" ", "")), Convert.ToInt32(param.centre_distance1.Replace(" ", "").Replace(" ", "")), Convert.ToInt32(param.centre_distance2.Replace(" ", "").Replace(" ", "")), Convert.ToDouble(param.S1), Convert.ToDouble(param.S2)); NotificationList.Refresh(parameters, mailname, telegramname); return(View()); }