public async Task <IActionResult> CreateBlockAsync(string type) { var block = await _service.CreateBlockAsync(type); if (block != null) { return(Ok(block)); } return(NotFound()); }
public async Task <IActionResult> CreateBlockAsync(string type) { var block = await _service.CreateBlockAsync(type); if (block != null) { return(Ok(block)); } return(NotFound()); }