public async Task <IActionResult> GetById([FromQuery] int templateId) { var response = await _service.Get(templateId); if (response.IsErrorOccured) { return(BadRequest(response.Message)); } return(Ok(response.Result)); }
public async Task <IActionResult> GetById([FromQuery] int templateId) { var response = await _service.Get(templateId); if (response.IsErrorOccured) { return(BadRequest(response.Message)); } return(Ok(response.Result)); }