Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task <ActionResult <DiaryDto> > GetEntitysById(int?id) { var diary = await diaryService.GetEntitys(u => u.DiaryId == id && u.IsPublic == true).FirstOrDefaultAsync(); if (diary == null) { return(NotFound()); } else { var ToDiaryDto = mapper.Map <DiaryDto>(diary); return(Ok(ToDiaryDto)); } }