I'm trying to update my table, when i update my entity [CreatorUserId] changing to null how can i stop that?

Using .Net Zero Repo

var projectAdmin = await _project.GetAsync(input.ProjectAdmin);
if (projectAdmin == null)
{
    throw new UserFriendlyException();
}
var projectRequest = await _project.UpdateAsync(new Project{Id = input.Id,ProjectName = input.ProjectName,});
var created = await _projectRepository.GetAsync(projectRequest);

return ObjectMapper.Map<ProjectDto>(created);

0 Answers