public async Task <IActionResult> Get_content_type() { try { var data = await _typeManager.Look_up(); return(Json(data)); } catch (Exception ex) { throw ex; } }
public async Task <IActionResult> Look_Up() { try { var data = await _TypesManager.Look_up(); return(Ok(data.Select(c => new { Value = c.Id, Title = c.Name }))); } catch (Exception ex) { return(StatusCode(500, ex.Message)); } }