public async Task <IActionResult> Create(string _ProjectName, string _Description, int _Progress, string _Projectİcon, bool _SyncProgress, IFormFile upload, Mission mission) { if (upload != null) { var path = Path.Combine(_environment.WebRootPath, "İcon", upload.FileName); var stream = new FileStream(path, FileMode.Create); upload.CopyTo(stream); mission.Projectİcon = upload.FileName; } mission.ProjectName = _ProjectName; mission.Description = _Description; mission.Progress = _Progress; mission.SyncProgress = _SyncProgress; mission.CreatedDate = DateTime.Now; mission.CreatedBy = User.Identity.Name; mission.User = await _userManager.GetUserAsync(User); _missonRepository.save(mission); return(RedirectToAction("Index", "Mission")); }