public int UpdateSendFiletoReportSupervisor(BE.ReportBE.Report report) { int i = 0; try { foreach (var item in report.Files) { if (item.status == 0) { i = _assignmentRepository.AddFileReportSupervisor(item); } else if (item.status == 1) { i = _assignmentRepository.DeleteFileReportSupervisor(item); } } } catch (Exception ex) { Log.Write(ex); throw; } return(i); }