public static CategoryMappingEntity UpdateEntityFromModel(this CategoryMappingEntity entity, CategoryMappingModel model)
        {
            entity.MatchValue   = model.MatchValue;
            entity.ColumnTypeId = model.ColumnTypeId;
            entity.CategoryId   = model.CategoryId;

            return(entity);
        }
 public static CategoryMappingModel ToDto(this CategoryMappingEntity entity)
 {
     return(new CategoryMappingModel
     {
         Id = entity.Id,
         CategoryId = entity.CategoryId,
         CategoryName = entity.Category.Name,
         MatchValue = entity.MatchValue,
         ColumnTypeId = entity.ColumnTypeId
     });
 }