Now can change forum data
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user