Asp.net – How to ignore a specific field when updating db entity?
I have a class MessageModel, which has a field public string? AttachedFile My controller adds a message to the database [SwaggerOperation(Summary = "Create Message")] public async Task<IActionResult> AddMessage(MessageModel messageModel) { if (messageModel.AttachedFile != null) { var mediaDto = _mapper.Map<MediaDto>(messageModel); var…