コード例 #1
0
 public Users_Request AddUsersRequest(Users_Request Users_Request)
 {
     using (KonkursProektovEntities db = new KonkursProektovEntities())
     {
         db.Users_Request.Add(Users_Request);
         db.SaveChanges();
     }
     return(Users_Request);
 }
コード例 #2
0
 public void DeleteUR(int id_User, int id_Request)
 {
     using (KonkursProektovEntities db = new KonkursProektovEntities())
     {
         Users_Request ur = db.Users_Request
                            .Where(o => o.Users_ID == id_User && o.Request_ID == id_Request)
                            .FirstOrDefault();
         db.Users_Request.Remove(ur);
         db.SaveChanges();
     }
 }