public IHttpActionResult GetItemMasterByGroupID(object[] data) { objPIService = new BookingMgt(); IEnumerable <vmItem> objPIItemMaster = null; vmCmnParameters objcmnParam = JsonConvert.DeserializeObject <vmCmnParameters>(data[0].ToString()); int recordsTotal = 0; try { string groupId = data[1].ToString(); objPIItemMaster = objPIService.GetItemMasterById(objcmnParam, groupId, out recordsTotal); } catch (Exception e) { e.ToString(); } return(Json(new { recordsTotal, objPIItemMaster })); }
public BookingController() { objPIService = new BookingMgt(); }