Exemple #1
0
 public IActionResult AddShift([FromBody] Shift model)
 {
     Shift_repo.Add(model);
     return(new OkObjectResult(new { ShiftID = model.ShiftsId }));
 }
 // I didn't want to let Wheel Of Fate Service have a dependency on shift repository so I wrapped these repository calls this service class
 public Shift InsertShift(Shift shift)
 {
     return(shiftRepository.Add(shift));
 }