private async Task SeedInitialValues() { BodyTypeSelectList = new SelectList(await _bodyTypeService.GetBodyTypeSelectListAsync(), "Value", "Text"); EyeColorSelectList = new SelectList(await _eyeColorService.GetEyeColorSelectListAsync(), "Value", "Text"); PatternSelectList = new SelectList(await _patternService.GetPatternSelectListAsync(), "Value", "Text"); GroupSelectList = new SelectList(await _groupService.GetGroupSelectListAsync(), "Value", "Text"); }
private async Task SeedInitialValues(int bodyTypeId, int eyeColorId, int patternId, int groupId, int subgroupId) { BodyTypeSelectList = new SelectList(await _bodyTypeService.GetBodyTypeSelectListAsync(), "Value", "Text", bodyTypeId); EyeColorSelectList = new SelectList(await _eyeColorService.GetEyeColorSelectListAsync(), "Value", "Text", eyeColorId); PatternSelectList = new SelectList(await _patternService.GetPatternSelectListAsync(), "Value", "Text", patternId); GroupSelectList = new SelectList(await _groupService.GetGroupSelectListAsync(), "Value", "Text", groupId); SubGroupSelectList = new SelectList(_groupService.GetSubGroupSelectList(groupId), "Value", "Text", subgroupId); }