public bool Update(mo.Report report) { var result = false; try { if (report == null) { throw new ArgumentNullException("report"); } _reportRepo.Update(report); result = true; } catch { throw; } return(result); }
public mo.Report Add(mo.Report report) { mo.Report result; try { if (report == null) { throw new ArgumentNullException("report"); } _reportRepo.Insert(report); result = report; } catch { throw; } return(result); }