public IHttpActionResult banksubquestionForSelection(string entityid = "", string CustomerId = "") { int _Entityid = 0; if (!int.TryParse(entityid, out _Entityid)) { return(NotFound()); } Guid _CustomerGuid = Guid.Empty;; if (!Guid.TryParse(CustomerId, out _CustomerGuid)) { return(NotFound()); } var data = _DropDownService.GetBankAndQuestionsForSelection(_Entityid, _CustomerGuid); if (data == null) { return(NotFound()); } return(Ok(data)); }