Esempio n. 1
0
 public Task <Result> StartApplication(string applicationId, Request_FApplicationStartDto request)
 {
     throw new NotImplementedException();
 }
Esempio n. 2
0
        public async Task <ActionResult <Response_FApplicationGetInfoDto> > StartApplication(string applicationId, [FromBody] Request_FApplicationStartDto request)
        {
            if (!this.ModelState.IsValid)
            {
                return(BadRequest(this.ModelState));
            }

            var result = await _applicationService.StartApplication(applicationId, request);

            if (result)
            {
                // Return 201 with the Location header indicating how to retrieve the resource, and the state of the resource after it was created
                return(Ok(_applicationService.GetApplicationInfo(applicationId)));
            }
            else
            {
                // There was some reason the resource does not exist in the database, so something was wrong with the request, return 400
                return(BadRequest(_messageProvider.Messages));
            }
        }
Esempio n. 3
0
 public abstract Task <Result> StartApplication(string applicationId, Request_FApplicationStartDto request);