Exemple #1
0
        /* Sincroniza BD con FS Nube */
        public bool Post(M.ParametroPutFile parametroPutFile)
        {
            bool S = false;

            try
            {
                O.MediaJobApplication mediaJobApplication = BD.MediaJobApplications.FirstOrDefault(x => x.Id == parametroPutFile.Id);
                mediaJobApplication.FileName     = parametroPutFile.FileName;
                mediaJobApplication.DownloadLink = parametroPutFile.DownloadURL;
                BD.SaveChanges();
                S = true;
            }
            catch { S = false; }
            return(S);
        }
        public bool Post(M.ParametroPutFile parametroPutFile)
        {
            bool state = false;

            try
            {
                O.MediaPerson mediaPerson = BD.MediaPersons.FirstOrDefault(x => x.Id == parametroPutFile.Id);
                mediaPerson.FileName     = parametroPutFile.FileName;
                mediaPerson.DownloadLink = parametroPutFile.DownloadURL;
                BD.SaveChanges();
                state = true;
            }
            catch { state = false; }
            return(state);
        }