public ReportIssues Update(ReportIssues ReportIssuesChanges)
        {
            var reportIssues = context.ReportIssues.Attach(ReportIssuesChanges);

            reportIssues.State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            context.SaveChanges();
            return(ReportIssuesChanges);
        }
Beispiel #2
0
        public ReportIssues Update(ReportIssues ReportIssuesChanges)
        {
            ReportIssues reportIssues = _reportIssuesList.FirstOrDefault(e => e.Id == ReportIssuesChanges.Id);

            {
                reportIssues.ProjectName     = ReportIssuesChanges.ProjectName;
                reportIssues.Catagory        = ReportIssuesChanges.Catagory;
                reportIssues.Severity        = ReportIssuesChanges.Severity;
                reportIssues.Reproducibility = ReportIssuesChanges.Reproducibility;
                reportIssues.Summary         = ReportIssuesChanges.Summary;
                reportIssues.Description     = ReportIssuesChanges.Description;
            }
            return(reportIssues);
        }
 public ReportIssues Add(ReportIssues reportIssues)
 {
     context.ReportIssues.Add(reportIssues);
     context.SaveChanges();
     return(reportIssues);
 }
Beispiel #4
0
 public ReportIssues Add(ReportIssues reportIssues)
 {
     reportIssues.Id = _reportIssuesList.Max(p => p.Id) + 1;
     _reportIssuesList.Add(reportIssues);
     return(reportIssues);
 }