Beispiel #1
0
        public IActionResult GetOneTimeslip(string id)
        {
            if (id == null || id == "")
            {
                return(new BadRequestObjectResult(new { message = "Please provide a valid timeslip id." }));
            }

            return(new ObjectResult(timeslipRepo.GetOneTimeslip(id)));
        }
 public IActionResult GetOneTimeslip(int id)
 {
     return(new ObjectResult(timeslipRepo.GetOneTimeslip(id)));
 }