/// <summary> /// Create View /// </summary> /// <returns>Create View</returns> public IActionResult Create() { try { ViewBag.Products = _productGroupRepository.GetSelectList(); return(View()); } catch (Exception ex) { _logger.LogCritical(500, ex.Message, ex); return(StatusCode(500, ex.Message)); } }