public async Task <IActionResult> SelectApiaryToAddBeehiveInTemporary(int id) { var currentUser = await this.userManager.GetUserAsync(this.User); var inputModel = new SelectApiaryToAddBeehiveInTemporaryInputModel { TemporaryId = id, TemporaryNumber = this.apiaryService.GetApiaryNumberByApiaryId(id), TemporaryName = this.apiaryService.GetApiaryNameByApiaryId(id), AllApiaries = this.apiaryService.GetUserApiariesWithoutTemporaryAsKeyValuePairs(currentUser.Id), }; return(this.View(inputModel)); }
public IActionResult SelectApiaryToAddBeehiveInTemporary(int id, SelectApiaryToAddBeehiveInTemporaryInputModel inputModel) { return(this.RedirectToAction(nameof(this.SelectBeehivesToAddInTemporary), new { selectedId = inputModel.SelectedApiaryId, temporaryId = id })); }