public IHttpActionResult GetGESO(string organizationId, string locationId = null) { if (locationId != null) { List <Dropdownlist> result = oSystemParameterBL.GetGeso(organizationId, locationId); return(Ok(result)); } else { List <Dropdownlist> result = oSystemParameterBL.GetGeso(organizationId); return(Ok(result)); } }