示例#1
0
        public async Task CanGet()
        {
            // Act
            Label label = await _service.GetAsync(Label.Inbox);

            // Assert
            Assert.NotNull(label);
        }
示例#2
0
        public async Task <IHttpActionResult> GetAsync(int labelId)
        {
            var label = await _labelService.GetAsync(labelId);

            return(Ok(label));
        }