public string Approve(ApprovalModel model, string userId) { try { if (model == null) { return("Error: model null"); } var result = _db.SP_PASSINGGOODS_APPROVE(model.MasterId, model.ApplicationId, model.IsApprove, model.Comment, userId, model.LinkApplication); return("Ok"); } catch (Exception ex) { LogHelper.Error("PassingGoodsRepository ApproveApplication: " + ex.Message + " Inner exception: " + ex.InnerException.Message); return(ex.InnerException.Message); } }