Skip to content

Commit 5e3a93c

Browse files
committed
Updated comments
1 parent 99807cb commit 5e3a93c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

SimpleTaskSystem/SimpleTaskSystem.Application/People/PersonAppService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
using System.Collections.Generic;
2-
using Abp.Application.Services;
32
using AutoMapper;
43
using SimpleTaskSystem.People.Dtos;
54

65
namespace SimpleTaskSystem.People
76
{
8-
public class PersonAppService : ApplicationService, IPersonAppService
7+
public class PersonAppService : IPersonAppService //Optionally, you can derive from ApplicationService as we did for TaskAppService class.
98
{
109
private readonly IPersonRepository _personRepository;
1110

SimpleTaskSystem/SimpleTaskSystem.Application/Tasks/TaskAppService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace SimpleTaskSystem.Tasks
1414
/// </summary>
1515
public class TaskAppService : ApplicationService, ITaskAppService
1616
{
17-
// These members set in constructor using constructor injection.
17+
//These members set in constructor using constructor injection.
1818

1919
private readonly ITaskRepository _taskRepository;
2020
private readonly IPersonRepository _personRepository;
@@ -31,7 +31,7 @@ public TaskAppService(ITaskRepository taskRepository, IPersonRepository personRe
3131

3232
public GetTasksOutput GetTasks(GetTasksInput input)
3333
{
34-
//Called specific GetAllWithPeople of task repository.
34+
//Called specific GetAllWithPeople method of task repository.
3535
var tasks = _taskRepository.GetAllWithPeople(input.AssignedPersonId, input.State);
3636

3737
//Used AutoMapper to automatically convert List<Task> to List<TaskDto>.
@@ -43,7 +43,7 @@ public GetTasksOutput GetTasks(GetTasksInput input)
4343

4444
public void UpdateTask(UpdateTaskInput input)
4545
{
46-
//We can use Logger, it's defined in ApplicationService class.
46+
//We can use Logger, it's defined in ApplicationService base class.
4747
Logger.Info("Updating a task for input: " + input);
4848

4949
//Retrieving a task entity with given id using standard Get method of repositories.

0 commit comments

Comments
 (0)