Beispiel #1
0
        public int Add(byte[] filedata)
        {
            int id = base.Add();

            if (id > 0)
            {
                _m = _dal.GetModel(id);
                _dal.UploadData(_m.GUID, filedata);
            }

            return(id);
        }
Beispiel #2
0
        public int Add(byte[] filedata, out Guid guid)
        {
            guid = Guid.Empty;

            int id = base.Add();

            if (id > 0)
            {
                _m = _dal.GetModel(id);
                _dal.UploadData(_m.GUID, filedata);
                guid = _m.GUID;
            }

            return(id);
        }