public override bool Delete(vUserReports UR) { User_Reports nurp = changetoUserRP(UR); db.User_Reports.Remove(nurp); db.SaveChanges(); return(true); }
public override bool Insert(vUserReports UR) { User_Reports nurp = changetoUserRP(UR); db.User_Reports.Add(nurp); db.SaveChanges(); return(true); }
public vUserReports changetovUserRP(User_Reports userrp) { vUserReports nuserrp = new vUserReports(); nuserrp.User_report_Id = userrp.User_report_Id; nuserrp.UserId = userrp.UserId; nuserrp.ReportId = userrp.ReportId; return(nuserrp); }
public User_Reports changetoUserRP(vUserReports vuserrp) { User_Reports nuserrp = new User_Reports(); nuserrp.User_report_Id = vuserrp.User_report_Id; nuserrp.UserId = vuserrp.UserId; nuserrp.ReportId = vuserrp.ReportId; return(nuserrp); }