public ActionResult AddOutcome(FormCollection form, String url) { var date = DateTime.Parse(form["date"].ToString()); var money = double.Parse(form["money"].ToString()); var type = int.Parse(form["type"].ToString()); var note = form["note"].ToString(); Outcome.AddNewOutCome(money, date, type, note); return(Redirect(url)); }