Exemple #1
0
        public override bool Delete(vUserReports UR)
        {
            User_Reports nurp = changetoUserRP(UR);

            db.User_Reports.Remove(nurp);
            db.SaveChanges();
            return(true);
        }
Exemple #2
0
        public override bool Insert(vUserReports UR)
        {
            User_Reports nurp = changetoUserRP(UR);

            db.User_Reports.Add(nurp);
            db.SaveChanges();
            return(true);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }