public IHttpActionResult bank(string entityid = "") { //if (string.IsNullOrEmpty(id)) //{ // return NotFound(); //} Guid bankGuid = Guid.Empty; int entityGuid = 0; if (!int.TryParse(entityid, out entityGuid)) { return(NotFound()); } var data = _DropDownService.GetBankMaster(entityGuid).OrderBy(a => a.Name); if (data == null) { return(NotFound()); } return(Ok(data)); }