GithubHelp home page GithubHelp logo

eventmanager's Introduction

Problem statement

A department must make an event and need to register any registrations online. You must be able to register for an event and see an overview of participants and what they are registered for.

Possible events:

  • Annual party
  • Intro course to .Net
  • Learning in databases

Requirements:

  1. Create an event
  2. Register a participant for an event
  3. Get an overview of participants and what they are registered for.

E/R modelling

Table EVENT

  • EventId (PK)
  • Name
  • DateTime
  • Description

Table PARTICIPANT

  • ParticipantId (PK)
  • FullName
  • PhoneNumber
  • EmailAddress

Table EVENT_PARTICIPANT

  • EventId (FK)
  • ParticipantId (FK)

Data access layer

EventRepository

  • Event CreateEvent(Event event)
  • List<Event> GetAllEvents()

ParticipantRepository

  • Participant CreateParticipant(Participant participant)

EventParticipantRepository

  • RegisterEvent(int participantId, int eventId)
  • GetParticipantsForEachEvent()
  • GetEventForEachParticipant()

Controllers

EventController

  POST    events/                   Create an event (1)
  GET     events/{id}               Read an event
  PUT     events/{id}               Update an event
  DELETE  events/{id}               Delete an event
  GET     events/{id}/participants  Read all participants for an event *

ParticipantController

  POST    participants/{id}         Create a participant
  GET     participants/{id}/events  Read all events for a participant

RegistrationController

  POST    registrations/                      Create an event (2)
  GET     registrations/events/participants/  Get participants for each event
  GET     registrations/participants/events/  Getevents for each participants

eventmanager's People

Contributors

phanjuy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.