public JsonResult SaveRoomsMaterial(string dataJson, Room model, string Ids) { var apiResult = new APIResult(); try { var data = new System.Web.Script.Serialization.JavaScriptSerializer().Deserialize <List <DisposableMaterial> >(dataJson); RoomBll.SaveRoomsMaterial(data, model, Ids); } catch (Exception ex) { apiResult.Ret = -1; apiResult.Msg = ex.Message; if (!(ex is OperationExceptionFacade)) { LogFactory.GetLogger().Log(LogLevel.Error, ex); } } return(Json(apiResult)); }