public IActionResult GetAll() { try { var getId = Convert.ToInt64(GetTokenType()); IEnumerable <Note> note = _notesBL.GetAll(getId); return(Ok(note)); } catch (Exception ex) { return(this.BadRequest(new { success = false, message = ex.Message })); } }
//[HttpGet("Database")] private IActionResult GetAll() { IEnumerable <Note> note = _notesBL.GetAll(); return(Ok(note)); }