public JsonModel add_workreport(workreport model, string t_picture, string m_picture) { JsonModel jsonModel = new JsonModel(); try { int result = DALBaseCommon.add_workreport(model, t_picture, m_picture); jsonModel = new JsonModel() { errNum = 0, errMsg = "success", retData = result }; return(jsonModel); } catch (Exception ex) { jsonModel = new JsonModel() { errNum = 400, errMsg = ex.Message, retData = "" }; return(jsonModel); } }