public Task <Result> CreateApplicationRepository(Request_FApplicationCreateDto request) { throw new NotImplementedException(); }
public async Task <ActionResult <Response_FApplicationGetInfoDto> > CreateApplicaitonRepository([FromBody] Request_FApplicationCreateDto request) { if (!this.ModelState.IsValid) { return(BadRequest(this.ModelState)); } var result = await _applicationService.CreateApplicationRepository(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(Created($"application/{(result as DataResult<Response_FApplicationGetInfoDto>)?.Data.Id}", new { Data = (result as DataResult <Response_FApplicationGetInfoDto>)?.Data, Messages = _messageProvider.Messages })); } 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)); } }
public abstract Task <Result> CreateApplicationRepository(Request_FApplicationCreateDto request);