public ActionResult UploadReleaseFile(int projectId) { List <string> platforms = new List <string> (); foreach (string plat in CurrentUserModel.CurrentApplication.PlatformsList) { string val = Request.Form ["platform-" + plat]; if (val.ToLower().IndexOf("true") != -1) { platforms.Add(plat); } } CurrentUserModel.UploadRelease(projectId, Request.Files[0], Request.Form ["appVersion"], platforms.ToArray()); return(RedirectToAction("Index", new { id = projectId })); }