public IHttpActionResult GetDropDown(string id, string entityid = "", string bankid = "") { if (string.IsNullOrEmpty(id)) { return(NotFound()); } if (id.Trim().ToLower() == "phonetype") { var data = _DropDownService.GetPhoneTypes(); if (data == null) { return(NotFound()); } return(Ok(data)); } if (id.Trim().ToLower() == "title") { var data = _DropDownService.GetTitles(); if (data == null) { return(NotFound()); } return(Ok(data)); } //Guid bankGuid = Guid.Empty; //Guid entityGuid = Guid.Empty; ; //if (!Guid.TryParse(entityid, out entityGuid) && !Guid.TryParse(bankid, out bankGuid)) //{ // return NotFound(); //} //if (id.Trim().ToLower() == "affiliate") //{ // var data = _DropDownService.GetAffiliateProgram(entityGuid); // if (data == null) // { // return NotFound(); // } // return Ok(data); //} //if (id.Trim().ToLower() == "bank") //{ // var data = _DropDownService.GetBankMaster(entityGuid); // if (data == null) // { // return NotFound(); // } // return Ok(data); //} //if (id.Trim().ToLower() == "banksubquestion") //{ // var data = _DropDownService.GetBankSubQuestionsMaster(bankGuid); // if (data == null) // { // return NotFound(); // } // return Ok(data); //} return(Ok(false)); }