public int Update(PassingGoodsMasterModel model, string userId)
 {
     try
     {
         _db.SP_PASSINGGOODS_UPDATE(model.Id, model.Applicant, model.DeptId, model.ApplicationDate,
                                    model.ReImport, model.ReImportDate, model.Reason, userId);
         return(model.Id);
     }
     catch (Exception ex)
     {
         LogHelper.Error("PassingGoodsRepository Update: " + ex.Message + " Inner Exception: " + ex.InnerException.Message);
         return(0);
     }
 }