Ejemplo n.º 1
0
        public async Task <Result <BugTicketCommentManageModel> > GetBugTicketComment(int id)
        {
            if (id == 0)
            {
                return(new BugTicketCommentManageModel(null)
                {
                    PublicId = Guid.NewGuid(),
                    StatusCode = RecordStatusCode.Active,
                    Files = new List <FileModel>(),
                });
            }

            var result = await _helpService.GetBugTicketCommentAsync(id);

            return(new BugTicketCommentManageModel(result));
        }