public IActionResult NewAgent(AgentAddViewModel model) { if (ModelState.IsValid) { } var flag = _agentService.AddAgentDetail(_mapper.Map <AgentAddSharedModel>(model)); if (!flag) { return(NotFound()); } //AttachAddtionalDataToView(); return(RedirectToAction("Index")); }