public SiteMonitoring Create(Action <SiteMonitoring> updateMethod, IEnumerable <HttpPostedFileBase> files, int?contractDetailID, string[] noteList) { var contractDetailRepository = new ContractDetailRepository() { DB = DB }; var contractDetail = contractDetailRepository.Get(contractDetailID.Value); SiteMonitoring e = new SiteMonitoring(); updateMethod(e); e.ContractDetail = contractDetail; Save(); PicasaRepository picasaRepository = new PicasaRepository(); picasaRepository.DB = DB; picasaRepository.UploadPhoto(e, files, noteList, false); Save(); return(e); }
public SiteMonitoring Update(int ID, Action <SiteMonitoring> updateMethod, IEnumerable <HttpPostedFileBase> files, List <int> DeletePhotoList, IEnumerable <HttpPostedFileBase> filesOfFixed, string[] noteList, string[] noteOfFixedList) { SiteMonitoring e = Get(ID); updateMethod(e); Save(); PicasaRepository picasaRepository = new PicasaRepository(); picasaRepository.DB = DB; picasaRepository.UploadPhoto(e, files, noteList, false); picasaRepository.UploadPhoto(e, filesOfFixed, noteOfFixedList, false, true); DeletePhoto(DeletePhotoList); Save(); return(e); }
public Site Add(Action<Site> updateMethod, IEnumerable<HttpPostedFileBase> files, string[] noteList) { Site e = new Site(); updateMethod(e); UpdateFrontBackLit(e); UpdateGeo(e); //UpdateCategory(e); DB.Sites.AddObject(e); Save(); PicasaRepository picasaRepository = new PicasaRepository(); picasaRepository.DB = DB; picasaRepository.UploadPhoto(e, files, noteList); Save(); return e; }
public SiteMonitoring Create(Action<SiteMonitoring> updateMethod, IEnumerable<HttpPostedFileBase> files, int? contractDetailID, string[] noteList) { var contractDetailRepository = new ContractDetailRepository() { DB = DB }; var contractDetail = contractDetailRepository.Get(contractDetailID.Value); SiteMonitoring e = new SiteMonitoring(); updateMethod(e); e.ContractDetail = contractDetail; Save(); PicasaRepository picasaRepository = new PicasaRepository(); picasaRepository.DB = DB; picasaRepository.UploadPhoto(e, files, noteList, false); Save(); return e; }
public void Update(int ID, Action <Site> updateMethod, IEnumerable <HttpPostedFileBase> files, List <int> DeletePhotoList, string[] noteList) { Site e = Get(ID); updateMethod(e); UpdateGeo(e); //UpdateCategory(e); UpdateFrontBackLit(e); Save(); PicasaRepository picasaRepository = new PicasaRepository(); picasaRepository.DB = DB; picasaRepository.UploadPhoto(e, files, noteList); DeletePhoto(DeletePhotoList); Save(); }
public Site Add(Action <Site> updateMethod, IEnumerable <HttpPostedFileBase> files, string[] noteList) { Site e = new Site(); updateMethod(e); UpdateFrontBackLit(e); UpdateGeo(e); //UpdateCategory(e); DB.Sites.AddObject(e); Save(); PicasaRepository picasaRepository = new PicasaRepository(); picasaRepository.DB = DB; picasaRepository.UploadPhoto(e, files, noteList); Save(); return(e); }
public void Update(int ID, Action<Site> updateMethod, IEnumerable<HttpPostedFileBase> files, List<int> DeletePhotoList, string[] noteList) { Site e = Get(ID); updateMethod(e); UpdateGeo(e); //UpdateCategory(e); UpdateFrontBackLit(e); Save(); PicasaRepository picasaRepository = new PicasaRepository(); picasaRepository.DB = DB; picasaRepository.UploadPhoto(e, files, noteList); DeletePhoto(DeletePhotoList); Save(); }
public SiteMonitoring Update(int ID, Action<SiteMonitoring> updateMethod, IEnumerable<HttpPostedFileBase> files, List<int> DeletePhotoList, IEnumerable<HttpPostedFileBase> filesOfFixed, string[] noteList, string[] noteOfFixedList) { SiteMonitoring e = Get(ID); updateMethod(e); Save(); PicasaRepository picasaRepository = new PicasaRepository(); picasaRepository.DB = DB; picasaRepository.UploadPhoto(e, files, noteList, false); picasaRepository.UploadPhoto(e, filesOfFixed, noteOfFixedList, false, true); DeletePhoto(DeletePhotoList); Save(); return e; }