public GetOpportunityStageGroupResponse GetOppoertunityStageGroups(GetOpportunityStageGroupRequest request) { GetOpportunityStageGroupResponse response = new GetOpportunityStageGroupResponse(); IEnumerable <dynamic> opportunityGroup = dropdownRepository.GetOppoertunityStageGroups(); response.OpportunityGroups = opportunityGroup; return(response); }
public ActionResult GetOppoertunityStageGroups() { GetOpportunityStageGroupRequest request = new GetOpportunityStageGroupRequest(); request.AccountId = this.Identity.ToAccountID(); GetOpportunityStageGroupResponse response = dropdownValuesService.GetOppoertunityStageGroups(request); return(Json(new { success = true, response = response.OpportunityGroups }, JsonRequestBehavior.AllowGet)); }