public IActionResult Add([FromBody] Location location) { var service = new Covid19Service(this._context); service.Add(location); return(Ok("result creted.")); }
public Covid19Controller(Covid19Service covid19Service) { _covid19Service = covid19Service; }
public async Task <IEnumerable <Location> > Get() { var service = new Covid19Service(this._context); return(await service.GetAll()); }