Showing 1 of 3 total issues
Method TranslateAsync
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[HttpPost]
[ProducesResponseType(typeof(TranslateResponseModel), 200)]
public async Task<IActionResult> TranslateAsync([FromBody] TranslateRequestModel model)
{
if (Constants.TranslateLanguages.All(x => x.Value != model.SourceLanguage))