public ActionResult AddCarbs(int carbs, DateTime dateTime, int hours, int minutes) { DateTime date = new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, hours, minutes, 0); database.AddCarbs(carbs, date, user.userId); return(Json("success", JsonRequestBehavior.AllowGet)); }