Now can change forum data

This commit is contained in:
2017-06-12 15:46:53 +03:00
parent 44c733b582
commit 3707a8dce2
5 changed files with 35 additions and 4 deletions

View File

@@ -42,5 +42,14 @@ namespace BL.Factories
Title = f.Title
};
}
public Foorum Update(Foorum domain, FoorumDTO dto)
{
domain.Title = dto.Title ?? domain.Title;
domain.Body = dto.Body ?? domain.Body;
domain.Description = dto.Description ?? domain.Description;
return domain;
}
}
}