public int Delete(int id) { Group_Request grp = this.context.Group_Request.SingleOrDefault(x => x.GroupReqId == id); this.context.Group_Request.Remove(grp); return(this.context.SaveChanges()); }
public int Update(Group_Request group_req) { Group_Request grp = this.context.Group_Request.SingleOrDefault(x => x.GroupReqId == group_req.GroupReqId); grp.GroupId = grp.GroupId; grp.TouristId = group_req.TouristId; return(this.context.SaveChanges()); }
public int Insert(Group_Request group_req) { this.context.Group_Request.Add(group_req); return(this.context.SaveChanges()); }
public int Update(Group_Request group_req) { return(this.data.Update(group_req)); }
public int Insert(Group_Request group_req) { return(this.data.Insert(group_req)); }