public async Task <IActionResult> CheckExist(string name) { return(Ok(await _standardRepository.IsExistAsync(a => a.Name == name))); }
public async Task <bool> CheckStandardExist(Expression <Func <StandardComponent, bool> > expression) { return(await _standardRepository.IsExistAsync(expression)); }