Exemplo n.º 1
0
 public void DeleteTepTin(int p, out string linkFile)
 {
     DAL.HOSO_TepTinDinhKem teptin = dataContext.HOSO_TepTinDinhKems.Where(t => t.PR_KEY == p).FirstOrDefault();
     linkFile = teptin.Link;
     dataContext.HOSO_TepTinDinhKems.DeleteOnSubmit(teptin);
     Save();
 }
Exemplo n.º 2
0
 public void UpdateTepTin(HOSO_TepTinDinhKem attachFile, out string oldFilePath)
 {
     DAL.HOSO_TepTinDinhKem tmp = GetTepTin(attachFile.PR_KEY);
     oldFilePath   = tmp.Link;
     tmp.TenTepTin = attachFile.TenTepTin;
     tmp.GhiChu    = attachFile.GhiChu;
     tmp.Link      = attachFile.Link;
     Save();
 }