Пример #1
0
        public static long UpdatePhotoLinkByID(long personID, string photoLink)
        {
            try
            {
                long count = 0;
                count = AccessDatabase.Update(QueryRepository.Person_Update_PhotoLink_By_PersonID,
                                              "@PersonID", personID, "@PhotoLink", photoLink);

                return(count);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #2
0
        public static long Update(SystemParameter param)
        {
            try
            {
                long count = 0;
                count = AccessDatabase.Update(QueryRepository.Param_Update_By_ParamID,
                                              "@ParamID", param.ParamID,
                                              "@ParamValue", param.ParamValue);

                return(count);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }