Exemple #1
0
        public async Task <ActionResult <List <Location> > > Post(Location[] newLocation)
        {
            try
            {
                if (newLocation.Count() <= 0)
                {
                    return(BadRequest("location is null"));
                }
                var results = await Locations.AddLocationsAsync(newLocation[0].patientId, newLocation.ToList());

                return(results);
            }
            catch (Exception)
            {
                throw;
            }
        }