public HttpResponseMessage GetFebricInspectionByInspectionID(object[] data) { vmFabricInspectionMaster objFabricInspection = null; vmCmnParameters objcmnParam = JsonConvert.DeserializeObject <vmCmnParameters>(data[0].ToString()); try { objFabricInspection = _objFebricInspection.GetFebricInspectionByInspectionID(objcmnParam); } catch (Exception e) { e.ToString(); } return(Request.CreateResponse(HttpStatusCode.OK, objFabricInspection)); }
public vmFabricInspectionMaster GetFebricInspectionByInspectionID(vmCmnParameters objcmnParam) { GenericFactory_FabricINspectionMaster = new PrdFabricInspectionMaster_VM(); vmFabricInspectionMaster _objFabricInspectionMasters = null; string spQuery = string.Empty; try { Hashtable ht = new Hashtable(); ht.Add("InspactionID", objcmnParam.id); spQuery = "[Get_FabricInspectionDetailsByID]"; _objFabricInspectionMasters = GenericFactory_FabricINspectionMaster.ExecuteQuery(spQuery, ht).FirstOrDefault(); } catch (Exception e) { e.ToString(); } return(_objFabricInspectionMasters); }