Beispiel #1
0
        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));
        }
Beispiel #2
0
 public IActionResult SelectApiaryToAddBeehiveInTemporary(int id, SelectApiaryToAddBeehiveInTemporaryInputModel inputModel)
 {
     return(this.RedirectToAction(nameof(this.SelectBeehivesToAddInTemporary), new { selectedId = inputModel.SelectedApiaryId, temporaryId = id }));
 }