예제 #1
0
 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 }));
     }
 }
예제 #2
0
        //[HttpGet("Database")]
        private IActionResult GetAll()
        {
            IEnumerable <Note> note = _notesBL.GetAll();

            return(Ok(note));
        }