Exemple #1
0
        public async Task <IActionResult> GetLocation([FromRoute] int rosterId)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var location = await _service.GetRosterLocations(rosterId);

            if (location == null)
            {
                return(NotFound());
            }

            return(Ok(location));
        }
        public async Task <IActionResult> Index(int rosterId)
        {
            List <LocationJut> locations = await _service.GetRosterLocations(rosterId);

            return(PartialView("_Locations", locations));
        }