public JsonResult GetFieldByName(string searchText) { Share.Log("Dec field Controller -> GetFieldByName -> Start"); bool isSuccess = false; List<hk_field> fieldList = new List<hk_field>(); string message = string.Empty; try { fieldList = _adapter.GetFieldsByName(searchText); isSuccess = true; } catch (Exception ex) { Share.Log("Dec field Controller -> GetFieldByName -> " + ex.Message, Share.MESSAGE_TYPE_ERROR); message = ex.Message; } Share.Log("Dec field Controller -> GetFieldByName -> End"); return Json(new { type = StatusType.Success.ToDescription(), message = message.ToString(), isSuccess = isSuccess, data = fieldList }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)