use expression bodies
This commit is contained in:
@ -7,10 +7,7 @@ namespace BinaryDad.Notes.Controllers
|
||||
{
|
||||
private readonly INoteService noteService;
|
||||
|
||||
public ApiController(INoteService noteService)
|
||||
{
|
||||
this.noteService = noteService;
|
||||
}
|
||||
public ApiController(INoteService noteService) => this.noteService = noteService;
|
||||
|
||||
public string Note() => noteService.Get();
|
||||
}
|
||||
|
Reference in New Issue
Block a user